Skip to content

Latest commit

 

History

History
58 lines (34 loc) · 1.6 KB

GooglePayCustomerInitializeOptions.md

File metadata and controls

58 lines (34 loc) · 1.6 KB

@bigcommerce/checkout-sdk / GooglePayCustomerInitializeOptions

Interface: GooglePayCustomerInitializeOptions

Table of contents

Properties

Methods

Properties

buttonColor

Optional buttonColor: Default | Black | White

The color of the GooglePay button that will be inserted. black (default): a black button suitable for use on white or light backgrounds. white: a white button suitable for use on colorful backgrounds.


buttonType

Optional buttonType: Long | Short

The size of the GooglePay button that will be inserted. long: "Buy with Google Pay" button (default). A translated button label may appear if a language specified in the viewer's browser matches an available language. short: Google Pay payment button without the "Buy with" text.


container

container: string

This container is used to set an event listener, provide an element ID if you want users to be able to launch the GooglePay wallet modal by clicking on a button. It should be an HTML element.

Methods

onClick

Optional onClick(): void

Callback that gets called on google pay button click

Returns

void