Skip to content

Latest commit

 

History

History
62 lines (34 loc) · 1.36 KB

ApplePayButtonInitializeOptions.md

File metadata and controls

62 lines (34 loc) · 1.36 KB

@bigcommerce/checkout-sdk / ApplePayButtonInitializeOptions

Interface: ApplePayButtonInitializeOptions

A set of options that are required to initialize ApplePay in cart.

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

Table of contents

Properties

Methods

Properties

buttonClassName

Optional buttonClassName: string

The class name of the ApplePay button style.


buyNowInitializeOptions

Optional buyNowInitializeOptions: Object

The options that are required to initialize Buy Now functionality.

Type declaration

Name Type
getBuyNowCartRequestBody? () => void | default

requiresShipping

Optional requiresShipping: boolean

This option indicates if product requires shipping

Methods

onPaymentAuthorize

onPaymentAuthorize(): void

A callback that gets called when a payment is successfully completed.

Returns

void