@bigcommerce/checkout-sdk / BraintreePaypalCreditButtonInitializeOptions
• 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
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"
| "height"
| "label"
| "size"
| "layout"
| "shape"
| "tagline"
| "fundingicons"
>
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_2 | StandardError |
The error object describing the failure. |
void
▸ Optional
onEligibilityFailure(): void
A callback that gets called when Braintree SDK restricts to render PayPal component.
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_2 | 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_2 | StandardError |
The error object describing the failure. |
void