Skip to content

Latest commit

 

History

History
91 lines (51 loc) · 1.95 KB

paypalbuttoninitializeoptions.md

File metadata and controls

91 lines (51 loc) · 1.95 KB

@bigcommerce/checkout-sdk > PaypalButtonInitializeOptions

PaypalButtonInitializeOptions

Hierarchy

PaypalButtonInitializeOptions

Index

Properties

Methods


Properties

<Optional> allowCredit

● allowCredit: * undefined | false | true *

Whether or not to show a credit button.


clientId

● clientId: string

The Client ID of the Paypal App


<Optional> style

● style: Pick<PaypalButtonStyleOptions, "layout" | "size" | "color" | "label" | "shape" | "tagline" | "fundingicons">

A set of styling options for the checkout button.


Methods

<Optional> onAuthorizeError

onAuthorizeError(error: StandardError): void

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

Parameters:

Param Type Description
error StandardError The error object describing the failure.

Returns: void


<Optional> onPaymentError

onPaymentError(error: StandardError): void

A callback that gets called if unable to submit payment.

Parameters:

Param Type Description
error StandardError The error object describing the failure.

Returns: void