merchantId | string | Required | | Merchant identifier |
userId | string | Required | | Merchant's user identifier, value is case insensitive |
reason | string | Optional | | Reason to create token |
callbackUrl | object | Required | | |
callbackUrl.success | string | Required | | An URL to redirect after successful tokenize |
callbackUrl.fail | string | Required | | An URL to redirect after failed tokenize |
callbackUrl.cancel | string | Optional | | An URL to redirect when payment is cancelled, back button will not show if value is not given |
callbackUrl.notify | string | Required | | An API URL in merchant's backend to receive notification |
lang | string | Optional | Web browser default | Default language, value can be zh-HK or en |
showLang | boolean | Optional | true | Show/hide language options |
showPoweredBy | boolean | Optional | true | Show/hide Powered by BBMSL text at the bottom |
paymentMethods | string | Optional | All available payment methods | Supported payment methods by order, separated with comma. Available methods: CARD , APPLEPAY , GOOGLEPAY |
defaultPaymentMethod | string | Optional | | Preselected payment method, fallback to default if it is not available. Available methods: CARD , APPLEPAY , GOOGLEPAY |
themeColor | string | Optional | | Order page background color |
buttonBackgroundColor | string | Optional | Background color of all buttons | |
buttonFontColor | string | Optional | Font color of all buttons | |