Hello! I am trying to test Apple Pay integration on my Websites. I have followed every step in this guide:
- Created a sandbox test account
- Signed out of the original apple id and logged into the sandbox test account
- Added a test card number
But now when I click on the payment, it pops up "Apple Pay is not available for this website"
This is my apple pay session.
"applePaySession": {
"epochTimestamp": 1722238930083,
"expiresAt": 1722242530083,
"merchantSessionIdentifier": "SSHAFB91E9B24D34819983B9BFC42A00B41_A0E617ED4A56A343E07C6E1255BD4098423B3A8E1243236462D07B14B4A0F7C3",
"nonce": "47723e6b",
"merchantIdentifier": "83DCF5597D4E94ABC7297F3489E4D5C4655CFDEB711EFA6FEB85E39FD86FD1E1",
"domainName": "dev-d8okw12xt.hoobuy.com",
"displayName": "Hoobuy.com",
"signature": "30***",
"operationalAnalyticsIdentifier": "Hoobuy.com:83***",
"retries": 0,
"pspId": "1A25***"
}```
Hi @kain_chow,
You wrote:
But now when I click on the payment, it pops up "Apple Pay is not available for this website"
This error is typically caused by an invalid payment session configuration due to the merchantIdentifier not matching the provided merchant identity certificate or payment processing certificate.
Please see the following resources for more information:
- TN3173: Troubleshooting issues with your Apple Pay merchant identifier configuration
- TN3174: Diagnosing issues with the Apple Pay payment sheet on your website
The latter has a section specifically related to this issue. Please confirm the following in your Apple Pay on the Web configuration:
- The
merchantIdentifier
provided to your payment session request matches an existing Merchant ID registered to your developer account. - The
merchantIdentifier
also has an active payment processing certificate and merchant identity certificate. - The domain provided to the payload of the
/startSession
or/paymentSession
endpoints match the domain shown in your web browser’s address bar.
If the information above does not resolve your issue, please let me know by adding another reply.
Cheers,
Paris