@bigcommerce/checkout-sdk / PaypalCommerceRatePay
• container: string
The CSS selector of a container where the payment widget should be inserted into.
• legalTextContainer: string
The CSS selector of a container where the legal text should be inserted into.
• loadingContainerId: string
The CSS selector of a container where loading indicator should be rendered
▸ Optional
getFieldsValues(): Object
A callback that gets form values
Object
Name | Type |
---|---|
ratepayBirthDate |
BirthDate |
ratepayPhoneCountryCode |
string |
ratepayPhoneNumber |
string |
▸ Optional
onError(error
): void
A callback for displaying error popup. This callback requires error object as parameter.
Name | Type |
---|---|
error |
unknown |
void
▸ Optional
onRenderButton(): void
A callback right before render Smart Payment Button that gets called when Smart Payment Button is eligible. This callback can be used to hide the standard submit button.
void