@bigcommerce/checkout-sdk › BraintreePaypalButtonInitializeOptions
- BraintreePaypalButtonInitializeOptions
• allowCredit? : undefined | false | true
Whether or not to show a credit button.
• shippingAddress? : Address | null
Address to be used for shipping. If not provided, it will use the first saved address from the active customer.
• style? : Pick‹PaypalButtonStyleOptions_2, "layout" | "size" | "color" | "label" | "shape" | "tagline" | "fundingicons"›
A set of styling options for the checkout button.
▸ onAuthorizeError(error
: BraintreeError | StandardError): void
A callback that gets called if unable to authorize and tokenize payment.
Parameters:
Name | Type | Description |
---|---|---|
error |
BraintreeError | StandardError | The error object describing the failure. |
Returns: void
▸ onPaymentError(error
: BraintreeError | StandardError): void
A callback that gets called if unable to submit payment.
Parameters:
Name | Type | Description |
---|---|---|
error |
BraintreeError | StandardError | The error object describing the failure. |
Returns: void