Options for enabling Apple Pay payments.

interface ApplePayOptions {
    companyName?: string;
    preparePaymentRequest?: ((paymentRequest) => CdvPurchase.ApplePay.PaymentRequest);
}

Properties

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?: ((paymentRequest) => CdvPurchase.ApplePay.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.

Type declaration