Skip to content

Express Docs v0.1.0


Express Docs / ApplePayStyle

Interface: ApplePayStyle

Defined in: src/types.ts:185

Visual style options for the Apple Pay button.

Properties

buttonstyle?

optional buttonstyle?: "white" | "black" | "white-outline"

Defined in: src/types.ts:187

Button color theme.


locale?

optional locale?: string

Defined in: src/types.ts:218

BCP 47 locale tag for button text (e.g. "en-US", "de-DE").


type?

optional type?: "subscribe" | "donate" | "book" | "buy" | "order" | "plain" | "add-money" | "check-out" | "continue" | "contribute" | "reload" | "rent" | "set-up" | "support" | "tip" | "top-up"

Defined in: src/types.ts:200

Label variant displayed on the button. Matches Apple's supported values for the <apple-pay-button> type attribute / -apple-pay-button-type CSS property.

Availability (per Apple Pay on the Web version history):

  • v2+: 'buy', 'donate', 'plain', 'set-up'
  • v4+: 'book', 'check-out', 'subscribe'
  • v10+: 'add-money', 'contribute', 'order', 'reload', 'rent', 'support', 'tip', 'top-up'
  • v12+: 'continue'

See

https://developer.apple.com/documentation/apple_pay_on_the_web/displaying_apple_pay_buttons_using_css

CollanaPay SDK Documentation