Overview
About
Apple Pay allows users to pay securely using cards saved to their Apple Pay Wallet, in iOS apps and on websites.
Region | International |
---|---|
Currencies | See the currencies page for details |
Refunds | Yes, within 11 months |
Disputes | Yes |
Preauthorization | No |
Recurring payments | No |
Note - Supported by Checkout SDK
Apple Pay is supported by Mangopay’s Checkout SDK, which can power the payment page of your website or app. Read more →
Activation
To offer Apple Pay with Mangopay you need to set up an Apple Pay merchant identifier and Payment Processing Certificate as described in the certificates guide.
You also need to integrate directly with Apple Pay:
- Apple Pay on web (see also their demo)
- Apple Pay on iOS (PassKit)
If not using Checkout SDK, you also need to adhere to their design guidelines.
How to process a payment
The basic flow of an Apple Pay payment is given in the diagram below.
1. Present Apple Pay to user
The user selects Apple Pay at the checkout on your app or website and confirms payment.
The user’s card must be registered in their Apple Pay wallet (see testing information).
2. Request the payment from Apple Pay
Use the Apple Pay PKPaymentRequest to request the payment, specifying the following values for the PKPaymentNetwork
:
visa
masterCard
Apple Pay returns encrypted data specific to the payment.
3. Request the pay-in from Mangopay
Call the POST Create an Apple Pay PayIn endpoint, including the PaymentData
as received from Apple Pay. The amount and currency of your pay-in request must match your Apple Pay request.
Note - 3DS redirection not required for Apple Pay
With Apple Pay, SCA-compliant authentication is handled by the user’s device (iPhone or Mac), meaning that the payment data received from Apple Pay is already authenticated and no 3DS redirection is required.
4. Handle the outcome
The transaction is complete when the pay-in status changes from CREATED
to SUCCEEDED
or FAILED
, indicating the outcome.
Set up webhooks for the PAYIN_NORMAL_SUCCEEDED
and PAYIN_NORMAL_FAILED
event types to be notified of this.
Related resources
Was this page helpful?