Skip to content

Express Docs v0.1.0


Express Docs / GooglePayStyle

Interface: GooglePayStyle

Defined in: src/types.ts:126

Visual style options for the Google Pay button. See the Google Pay ButtonOptions reference.

Properties

buttonBorderType?

optional buttonBorderType?: "no_border" | "default_border"

Defined in: src/types.ts:181

Border style of the button.

Remarks

Only applies to native GooglePay (Adyen:GooglePay, Computop:GooglePay). Ignored by Stripe:GooglePay.


buttonColor?

optional buttonColor?: "white" | "black" | "default"

Defined in: src/types.ts:138

Button color theme.

Remarks

For native GooglePay (Adyen:GooglePay, Computop:GooglePay): maps to the Google Pay JS SDK buttonColor option. 'default' follows user/OS preferences.

For Stripe:GooglePay: maps to Stripe's buttonTheme.googlePay. 'default' uses Stripe's own default (black).


buttonLocale?

optional buttonLocale?: string

Defined in: src/types.ts:174

Language for the button label.

Remarks

Only applies to native GooglePay (Adyen:GooglePay, Computop:GooglePay). Ignored by Stripe:GooglePay (use options.locale instead). Accepts both BCP-47 format (e.g. 'de-DE', 'en-US') and ISO 639-1 format (e.g. 'de', 'en'). The region subtag is stripped automatically before passing to the Google Pay API.


buttonRadius?

optional buttonRadius?: number

Defined in: src/types.ts:164

Corner radius of the button in pixels (0–20 for the default 40 px height).

Remarks

Only applies to native GooglePay (Adyen:GooglePay, Computop:GooglePay). Ignored by Stripe:GooglePay. See the Google Pay brand guidelines for constraints.


buttonSizeMode?

optional buttonSizeMode?: "fill" | "static"

Defined in: src/types.ts:155

Sizing behavior — 'fill' stretches to container width, 'static' uses fixed dimensions.

Remarks

Only applies to native GooglePay (Adyen:GooglePay, Computop:GooglePay). Ignored by Stripe:GooglePay.


buttonType?

optional buttonType?: "checkout" | "pay" | "subscribe" | "donate" | "book" | "buy" | "order" | "plain"

Defined in: src/types.ts:148

Label variant displayed on the button.

Remarks

Supported by all GooglePay providers (Adyen:GooglePay, Computop:GooglePay, Stripe:GooglePay).

Default Value

'buy'

CollanaPay SDK Documentation