Skip to content

Latest commit

 

History

History
56 lines (30 loc) · 1.38 KB

PayPalCommerceButtonInitializeOptions.md

File metadata and controls

56 lines (30 loc) · 1.38 KB

@bigcommerce/checkout-sdk / PayPalCommerceButtonInitializeOptions

Interface: PayPalCommerceButtonInitializeOptions

A set of options that are required to initialize PayPalCommerce in cart or product details page.

When PayPalCommerce is initialized, an PayPalCommerce button will be inserted into the DOM. When a customer clicks on it, it will trigger Apple sheet.

Table of contents

Properties

Methods

Properties

buyNowInitializeOptions

Optional buyNowInitializeOptions: PayPalBuyNowInitializeOptions

The options that are required to initialize Buy Now functionality.


currencyCode

Optional currencyCode: string

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


style

Optional style: PayPalButtonStyleOptions

A set of styling options for the checkout button.

Methods

onComplete

Optional onComplete(): void

A callback that gets called when payment complete on paypal side.

Returns

void