Apple Pay provides a biometric-authenticated payment option for shoppers on Apple devices. Face ID or Touch ID replaces card entry at checkout. Customers on non-Apple devices scan a QR code with an iPhone to complete payment. Apple Pay is available through Payment Service in Optimizely Configured Commerce.
Prerequisites
Confirm the following before you start the Apple Pay configuration.
- Payment Service enabled for Configured Commerce.
- An Apple Developer account with access to the Certificates, Identifiers & Profiles section.
Create an Apple Merchant ID
The Apple Merchant ID identifies your business to Apple Pay. Register it in the Apple Developer Portal before you generate certificates or the domain verification file. Every later phase references this identifier.
- Sign in to your Apple Developer account.
- Go to Certificates, Identifiers & Profiles > Identifiers.
- Click Add to register an identifier.
- Select Merchant IDs.
- Enter a description in the Description field (for example, *My Store Apple Pay*).
- Enter an identifier in the Identifier field in reverse-domain format (for example, `merchant.com.yourcompany.store`).
- Click Continue.
- Click Register.
- Copy the Merchant ID. You need it for the Admin Console settings in the final phase.
Generate the payment processing certificate
The payment processing certificate lets the Spreedly payment-gateway integration decrypt Apple Pay tokens on behalf of your storefront. Spreedly is the gateway that Payment Service uses to handle card and wallet payments.
- Go to Payment Service > Apple Pay Setup in the Admin Console.
- Click Generate CSR on the Payment Processing Certificate tab. The system generates a Certificate Signing Request (CSR) through the Spreedly Certificates API.
- Click Download CSR to save the
.csrfile. - Sign in to the Apple Developer Portal.
- Go to Certificates, Identifiers & Profiles.
- Create an Apple Pay Payment Processing Certificate with the downloaded CSR.
- Download the signed
.cerfile from Apple. - Upload the signed
.cerfile in the Upload Signed Certificate step of the Admin Console. - Click Complete to finalize the payment processing certificate configuration.
Generate the merchant identity certificate
The merchant identity certificate authenticates your server when it creates Apple Pay sessions.
- Click Generate CSR on the Merchant Identity Certificate tab. The system generates a 2048-bit RSA key pair and CSR.
- Click Download CSR to save the
.csrfile. - Create an Apple Pay Merchant Identity Certificate in the Apple Developer Portal, using the downloaded CSR.
- Download the signed
.cerfile from Apple. - Upload the signed
.cerfile in the Admin Console. - Enter a password for the
.p12file when prompted. The system packages the signed certificate and private key into a password-protected.p12file. - Copy the Base64-encoded
.p12output. Keep this value for the Admin Console settings in the final phase.
Prepare the domain verification file
Apple requires a domain verification file to confirm you control the domain where Apple Pay is offered.
- Download the domain verification file from the Apple Developer Portal (under your Merchant ID's domain settings).
- Convert the verification file with the file-to-Base64 converter on the Domain Verification tab.
- Click Copy to copy the Base64 value to the clipboard.
- Paste this value into the Apple Pay Domain Verification File setting under Settings > Order Management.
Configure Apple Pay in the Admin Console
Connect Payment Service to the certificates and verification file you prepared, so the storefront can present Apple Pay at checkout.
- Go to Settings > Order Management in the Admin Console.
- Set Enable Apple Pay to Yes in the Payment section.
-
Provide the following settings in the Apple Pay section:
- Merchant ID – Your Apple merchant ID from the Apple Developer Portal.
- Merchant Name – Your business name, shown on the Apple Pay payment sheet.
- Test Mode – Controls whether Apple Pay runs in sandbox mode. Set the toggle to *No* before going live.
- Merchant Certificate – The Base64-encoded
.p12from the merchant identity certificate. - Domain Verification File – The Base64-encoded domain verification file from the previous phase.
- Click Save.
What customers see at checkout
When you finish the configuration, customers on Apple devices see an Apple Pay button at checkout. Customers on non-Apple devices see a QR code they can scan with an iPhone to complete payment.
Verify Apple Pay at checkout
Run the following checks before going live, so you can confirm the configuration works end to end.
- The Apple Pay button renders at checkout on a supported Apple device (Safari on iOS or macOS, with a card in Apple Wallet).
- The QR code displays on a non-Apple device and resolves on an iPhone with Apple Wallet.
- The Test Mode toggle is set to No before live transactions.
- The storefront's payment-method logs are reachable from the Admin Console, so you can diagnose certificate, domain, or gateway issues.
Please sign in to leave a comment.