Braintree.IosBridge.ApplePayOptions
Options for enabling Apple Pay payments.
• 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.
• Optional
preparePaymentRequest: (paymentRequest
: PaymentRequest
) => PaymentRequest
▸ (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/
Name | Type |
---|---|
paymentRequest |
PaymentRequest |