Usage
Examples
Basic usage
A very simple example.
Logo
Display text logo, image logo or both.
Theme
Different button styles. white-black
is the default style.
Clearpay
When the countryCode='GB'
, the logo will be Clearpay.
API
Property | Description | Type | Default |
---|---|---|---|
token | (required) checkout token to be used to complete payment. | string | - |
countryCode | (required) country code. | string | - |
behavior | method of launching the checkout page. | enum: popup | redirect | popup |
onComplete | callback when transaction is complete. popup mode only. | (event: any) => void | - |
logo | determine how to display the logo. | enum: image | text | all | all |
theme | color of button's background and label. | enum: white-black | black-mint | mint-black | white-black |
className | classname of button wrapper. | string | - |
style | extra styles. | React.CSSProperties | - |