This page is part of Merchant Account Setup. Back to Library Setup →
Apple Pay collects payment credentials from customers. You’ll also need a payment provider configured in Orchestra to process the transactions.
1. Create a Merchant ID
A Merchant ID identifies you as a merchant who is able to accept payments via Apple Pay.- Sign in to your Apple Developer Account
- Go to Certificates, Identifiers & Profiles > Identifiers
- Click + to add a new identifier
- Select Merchant IDs
- Enter a description and a unique identifier for your Merchant ID (e.g.,
merchant.com.example.yourbusiness) - Click Continue, review the details, and then Register
2. Verify Merchant Domain
Apple requires your domain to be verified to ensure that only authorized domains can initiate Apple Pay transactions on behalf of your Merchant ID.- Go back to the Merchant ID page in the developer portal
- Under your Merchant ID, click Edit and then Verify Your Domain
- Enter the domain name you want to use for Apple Pay (e.g.,
example.com) - Download the Apple Pay Verification File (
apple-developer-merchantid-domain-association) - Upload the file to the
.well-knowndirectory on your domain. The full URL should be:https://yourdomain.com/.well-known/apple-developer-merchantid-domain-association - Return to the Apple Developer Portal and click Verify. If the file is hosted correctly, the domain will be verified.
The file must be served over HTTPS without redirects. Download the file only once. Repeated downloads generate new content.
3. Create Payment Processing Certificate
This certificate is used by your payment processor to handle payment data securely.- Generate a Certificate Signing Request (CSR) on your machine using OpenSSL:
- Go to Certificates, Identifiers & Profiles in the Apple Developer Portal
- Select Merchant IDs and click on your Merchant ID
- Under Apple Pay Payment Processing Certificate, click Create Certificate
- In the Create a New Certificate page, select Choose File under “Upload a Certificate Signing Request” and upload your
~/request.csr - Download the Apple Pay Payment Processing Certificate (
apple_pay.cer)
- Move the downloaded file to your working directory (
~/) and convert it to PEM:
4. Create Merchant Identity Certificate
This certificate allows your server to authenticate itself to Apple’s servers during payment processing.- Generate a CSR and key file using OpenSSL:
In the prompt, enter your details. The Common Name should match the one used in the previous step. When asked for a password, leave it blank and press Enter.
- Go to Certificates, Identifiers & Profiles in the Apple Developer Portal
- Select Merchant IDs and click on your Merchant ID (the same one as the previous step)
- Under Apple Pay Merchant Identity Certificate, click Create Certificate
- In the Create a New Certificate page, select Choose File under “Upload a Certificate Signing Request” and upload your
~/uploadMe.csr - Download the Apple Pay Merchant Identity Certificate (
merchant_id.cer)
- Move the downloaded file to your working directory (
~/) and convert it to PEM:
5. Create eWallet Account
After completing the previous steps, you should have the following files in your working directory:| File | Generated In |
|---|---|
mykey.key | Step 3 - Payment Processing key pair |
request.csr | Step 3 - Payment Processing CSR |
apple_pay.cer | Step 3 - Downloaded from Apple |
apple_pay.pem | Step 3 - Converted certificate |
uploadMe.csr | Step 4 - Merchant Identity CSR |
clientCertificate.key | Step 4 - Merchant Identity key |
merchant_id.cer | Step 4 - Downloaded from Apple |
clientCertificate.pem | Step 4 - Converted certificate |
| eWallet Account Field | Value |
|---|---|
| Name | Desired name of the eWallet Account - you will use this in your requests |
| eWallet Type | ApplePay |
| Merchant Identifier | The identifier from Step 1 (e.g., merchant.com.example.yourbusiness) |
| Merchant Display Name | Desired display name shown to payers |
| Domain Name | Domain where the Apple Pay button will be hosted - must match the Common Name (CN) set in the certificates |
| Client Certificate Pem | Contents of ~/clientCertificate.pem |
| Client Certificate Private Key Pem | Contents of ~/clientCertificate.key |
| Payment Certificate Private Key Pem | Contents of ~/mykey.key |
| Payment Certificate Pem | Contents of ~/apple_pay.pem |
Testing
Use Apple Pay Sandbox with test cards in Safari on macOS or iOS.Next Steps
Store eWallet Account
Save your Apple Pay credentials in Orchestra
Apple Pay Guide
Implement Apple Pay in your integration