Skip to content

Latest commit

 

History

History
77 lines (43 loc) · 2.17 KB

braintreepaypalbuttoninitializeoptions.md

File metadata and controls

77 lines (43 loc) · 2.17 KB

@bigcommerce/checkout-sdkBraintreePaypalButtonInitializeOptions

Interface: BraintreePaypalButtonInitializeOptions

Hierarchy

  • BraintreePaypalButtonInitializeOptions

Index

Properties

Methods

Properties

Optional allowCredit

allowCredit? : undefined | false | true

Whether or not to show a credit button.


Optional shippingAddress

shippingAddress? : Address | null

Address to be used for shipping. If not provided, it will use the first saved address from the active customer.


Optional style

style? : Pick‹PaypalButtonStyleOptions_2, "layout" | "size" | "color" | "label" | "shape" | "tagline" | "fundingicons"›

A set of styling options for the checkout button.

Methods

Optional onAuthorizeError

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


Optional onPaymentError

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