Skip to content

Latest commit

 

History

History
55 lines (31 loc) · 1.65 KB

CdvPurchase.Braintree.IosBridge.ApplePayOptions.md

File metadata and controls

55 lines (31 loc) · 1.65 KB

Interface: ApplePayOptions

Braintree.IosBridge.ApplePayOptions

Options for enabling Apple Pay payments.

Table of contents

Properties

Properties

companyName

Optional companyName: string

Your company name, required to prepare the payment request.

If you are setting paymentSummaryItems manually in preparePaymentRequest, this field will not be used.


preparePaymentRequest

Optional preparePaymentRequest: (paymentRequest: PaymentRequest) => PaymentRequest

Type declaration

▸ (paymentRequest): PaymentRequest

When the user selects Apple Pay as a payment method, the plugin will initialize a payment request client side using the PassKit SDK.

You can customize the ApplePay payment request by implementing the preparePaymentRequest function.

This let's you prefill some information you have on database about the user, limit payment methods, enable coupon codes, etc.

See

https://developer.apple.com/documentation/passkit/pkpaymentrequest/

Parameters
Name Type
paymentRequest PaymentRequest
Returns

PaymentRequest