ApplePay Session 400: Bad Request

After successfully creating both an Apple Merchant Identifier certificate and Apple Payment Processing certificate, I keep getting the following error after clicking the ApplePay button in the cart:


Could not start Apple Pay session: 400 Bad Request

{

"statusMessage": "Payment Services Exception merchantId=51nnnnn unauthorized to service on behalf of merchantId=9Cnnnn reason=\"The latter never authorized the former\"",

"statusCode": "400"

}


The domain has been successfully registered in the Salesforce Commerce Cloud Business Manager and we've verified the credentials being used for the ApplePay and Payment provider accounts.

Replies

Hey akersha,


I've run into this same issue on Salesforce Commerce Cloud's new Storefront Reference Application... Have you made any progress?


Thanks,


Chris

Hey Akersha,


I've figured out the issue. On the apple pay config here:


Merchant Tools > Site Preferences > Apple Pay


Check the site url that is registered here:


Domain Registration
You must register the domain for your site with Apple in order to use Apple Pay.
The currently configured domain for this site is <site URL>


The url listed much match the storefront URL exactly. My sandbox was using dots where the registered sandbox had dashes...


THanks,


Chris