@bigcommerce/checkout-sdk / BraintreeLocalMethods
• buttonText: string
Text that will be displayed on lpm button
• container: string
The CSS selector of a container where the payment widget should be inserted into.
▸ 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 This callback can be used to hide the standard submit button.
void
▸ Optional
submitForm(): void
A callback for submitting payment form that gets called when buyer approved PayPal account.
void