Skip to main content
Accept Apple Pay payments using our APIs, and build your own payment form to have full control over the look and feel of your checkout page. Adyen does not currently support China UnionPay cards when using Apple Pay. You cannot send the merchantCapability “supportsEMV” in your Apple Pay integration.

Requirements

Build your payment form for Apple Pay

After you have finished setting up Apple Pay, you can show Apple Pay as an available payment method in countries/regions where Apple Pay is supported. You can download logos for Apple Pay which you can use on your payment form. When the shopper selects Apple Pay, they are presented with a prompt to verify the payment using Touch ID or Face ID. If the shopper is using a Mac without Touch ID, they will be prompted to verify the payment using an iPhone or Apple Watch registered to the same iCloud account.
  1. Make a /paymentMethods request, specifying:
    • countryCode: Countries/regions where Apple Pay is supported. For example, NL.
    • amount.currency: Any supported currency. For example, EUR.
    • channel: Set this to Web if the payment is being initiated from Safari, or iOS for in-app payments.
  2. In the response, you receive:

Complete the Apple Pay session validation

This step is only required for web integrations. You do not need to complete the Apple Pay session validation for in-app payments. When the shopper selects to pay with Apple Pay, you get the onvalidatemerchant event handler. You then need to complete the Apple Pay session validation using the completeMerchantValidation method. You can do this by using Adyen’s Apple Pay certificate, or you can use your own:
  1. Make an /applePay/sessions call to retrieve the payment session for Apple Pay, and include: /applePay/sessions request
  2. Decode the base64-encoded data object you get in the response: /applePay/sessions response
  3. Pass the decoded data as an object to the completeMerchantValidation method to complete the Apple Pay session validation.