@bigcommerce/checkout-sdk / BraintreePaypalButtonInitializeOptions
• Optional buyNowInitializeOptions: Object
The options that are required to initialize Buy Now functionality.
| Name | Type |
|---|---|
getBuyNowCartRequestBody? |
() => void | BuyNowCartRequestBody |
• Optional currencyCode: string
The option that used to initialize a PayPal script with provided currency code.
• Optional messagingContainerId: string
The ID of a container which the messaging should be inserted.
• Optional shippingAddress: null | Address
Address to be used for shipping. If not provided, it will use the first saved address from the active customer.
• Optional style: Pick<PaypalStyleOptions, "color" | "layout" | "size" | "label" | "shape" | "tagline" | "fundingicons" | "height">
A set of styling options for the checkout button.
▸ Optional onAuthorizeError(error): void
A callback that gets called if unable to authorize and tokenize payment.
| Name | Type | Description |
|---|---|---|
error |
BraintreeError | StandardError |
The error object describing the failure. |
void
▸ Optional onError(error): void
A callback that gets called on any error instead of submit payment or authorization errors.
| Name | Type | Description |
|---|---|---|
error |
BraintreeError | StandardError |
The error object describing the failure. |
void
▸ Optional onPaymentError(error): void
A callback that gets called if unable to submit payment.
| Name | Type | Description |
|---|---|---|
error |
BraintreeError | StandardError |
The error object describing the failure. |
void