Skip to content

Latest commit

 

History

History
124 lines (70 loc) · 3.15 KB

BraintreePaypalCreditButtonInitializeOptions.md

File metadata and controls

124 lines (70 loc) · 3.15 KB

@bigcommerce/checkout-sdk / BraintreePaypalCreditButtonInitializeOptions

Interface: BraintreePaypalCreditButtonInitializeOptions

Table of contents

Properties

Methods

Properties

buyNowInitializeOptions

Optional buyNowInitializeOptions: Object

The options that are required to initialize Buy Now functionality.

Type declaration

Name Type
getBuyNowCartRequestBody? () => void | BuyNowCartRequestBody

currencyCode

Optional currencyCode: string

The option that used to initialize a PayPal script with provided currency code.


shippingAddress

Optional shippingAddress: null | Address

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


style

Optional style: Pick<PaypalStyleOptions, "color" | "height" | "label" | "size" | "layout" | "shape" | "tagline" | "fundingicons">

A set of styling options for the checkout button.

Methods

onAuthorizeError

Optional onAuthorizeError(error): void

A callback that gets called if unable to authorize and tokenize payment.

Parameters

Name Type Description
error BraintreeError_2 | StandardError The error object describing the failure.

Returns

void


onEligibilityFailure

Optional onEligibilityFailure(): void

A callback that gets called when Braintree SDK restricts to render PayPal component.

Returns

void


onError

Optional onError(error): void

A callback that gets called on any error instead of submit payment or authorization errors.

Parameters

Name Type Description
error BraintreeError_2 | StandardError The error object describing the failure.

Returns

void


onPaymentError

Optional onPaymentError(error): void

A callback that gets called if unable to submit payment.

Parameters

Name Type Description
error BraintreeError_2 | StandardError The error object describing the failure.

Returns

void