We are using apple pay on the Web. But we are getting this error as below while creating the session from our API -
{"error": "Failed to create Apple Pay session: 400 Bad Request: [{ "statusMessage": "Payment Services Exception merchantId=2BA8AF828D93E74EC76655D09C9132B7445BA789D674E970873CCCD85E5A8A5E not registered for domain=https://applepay-dev.ippay.com", "statusCode": "400" }]"}
====================================================
Please use the following Curl request to generate the error.
curl --location 'https://applepay-dev.ippay.com/api/v2/payment/alternatepay/session/create'
--header 'Content-Type: application/json'
--header 'Accept: /'
--header 'Sec-Fetch-Site: same-origin'
--header 'Accept-Language: en-US,en;q=0.9'
--header 'Accept-Encoding: gzip, deflate, br'
--header 'Sec-Fetch-Mode: cors'
--header 'Host: applepay-dev.ippay.com'
--header 'Origin: https://applepay-dev.ippay.com'
--header 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15'
--header 'Referer: https://applepay-dev.ippay.com/payment/payment.html'
--header 'Content-Length: 84'
--header 'Connection: keep-alive'
--header 'Sec-Fetch-Dest: empty'
--data '{"validationUrl":"https://apple-pay-gateway.apple.com/paymentservices/startSession"}'
Configuration steps we followed - A. Created Merchant ID B. Created payment processing and Merchant Identity certificate C. Did domain association mapping for the merchant C. Created domain name and TLS SSL for the server from where we are calling the API
Please advise.