Enable Apple Pay on the web

To enable Apple Pay on the web, you also need to:

For information about server requirements for Apple Pay on the web, refer to the Apple Developer portal.

Create a certificate for your Apple Pay merchant identity

  1. Log in to your Apple developer account at https://developer.apple.com.

  2. Click Certificates, Identifiers & Profiles.
    The page loads and presents a menu.
  3. Click Merchant IDs.
  4. Select your merchant identifier and click Edit.
  5. In the section Apple Pay Merchant Identity, click Create Certificate.
  6. Follow the Apple instructions. You can ignore the "To create a CSR file without a payment provider" step.
  7. Download the certificate and add this to your keychain.
  8. Export the certificate from your keychain as a p12 file.
  9. Convert the p12 file to a PEM file using the following command:

    openssl pkcs12 -in your-file.p12 -out apple-pay-cert.pem -nodes -clcerts
  10. Upload the apple-pay-cert.pem file to your server.

Use the full path to your PEM file when requesting an Apple Pay payment session.