Skip to content

Latest commit

 

History

History
76 lines (42 loc) · 1.61 KB

PaypalButtonInitializeOptions.md

File metadata and controls

76 lines (42 loc) · 1.61 KB

@bigcommerce/checkout-sdk / PaypalButtonInitializeOptions

Interface: PaypalButtonInitializeOptions

Table of contents

Properties

Methods

Properties

allowCredit

Optional allowCredit: boolean

Whether or not to show a credit button.


clientId

clientId: string

The Client ID of the Paypal App


style

Optional style: Pick<PaypalStyleOptions, "color" | "layout" | "size" | "label" | "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 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 StandardError The error object describing the failure.

Returns

void