Accept Apple Pay™ MPAN Payments
This guide explains how to accept Apple Pay™ payments using Merchant-Provisioned Account Numbers (MPANs) with the Basis Theory platform to handle PCI-sensitive data securely. MPANs are specialized tokens provided by Apple that enable merchants to accept payments for recurring transactions, subscriptions, and other ongoing payment scenarios.
Let’s begin by reviewing the Apple Pay™ payment flow.
When the user clicks the Apple "Pay" button, a sequence of high-level steps is initiated:
-
Creation of an Apple Pay™ session - The client application calls Basis Theory to initiate an Apple Pay™ session.
-
Decryption of the payment data - After the user authorizes the payment, the encrypted payment data is sent to Basis Theory for decryption and storage. Basis Theory responds with an Apple Pay™ resource that can be used to process the payment.
-
Processing of the payment data - The Basis Theory Apple Pay™ resource is forwarded to the payment processor via Basis Theory Proxy, which translates Token back to raw data before sending the request. Upon receiving a successful payment response, the client application can complete the payment and inform the user that the payment was successful.
Understanding Apple Pay™ MPANs
Apple provides MPAN tokens for various payment scenarios:
- Recurring Payments - Subscriptions, memberships, and regular billing cycles
- Automatic Reload - Topping up accounts when balances fall below thresholds
- Deferred Payment - Pre-authorization for services delivered at a later date
When using MPANs, the payment flow includes additional configuration in the Apple Pay™ payment request to specify the type of recurring payment and associated parameters.