@bigcommerce/checkout-sdk / BraintreePaypalCreditButtonInitializeOptions
optionalbuyNowInitializeOptions?:object
The options that are required to initialize Buy Now functionality.
optionalgetBuyNowCartRequestBody():void|BuyNowCartRequestBody
void | BuyNowCartRequestBody
optionalcurrencyCode?:string
The option that used to initialize a PayPal script with provided currency code.
optionalshippingAddress?:Address|null
Address to be used for shipping. If not provided, it will use the first saved address from the active customer.
optionalstyle?:Pick<PaypalStyleOptions,"label"|"color"|"height"|"layout"|"shape"|"size"|"fundingicons"|"tagline">
A set of styling options for the checkout button.
optionalonAuthorizeError(error):void
A callback that gets called if unable to authorize and tokenize payment.
StandardError | BraintreeError
The error object describing the failure.
void
optionalonEligibilityFailure():void
A callback that gets called when Braintree SDK restricts to render PayPal component.
void
optionalonError(error):void
A callback that gets called on any error instead of submit payment or authorization errors.
StandardError | BraintreeError
The error object describing the failure.
void
optionalonPaymentError(error):void
A callback that gets called if unable to submit payment.
StandardError | BraintreeError
The error object describing the failure.
void