Is there a way to know why I'm getting a 500 error when approving a payment in the sandbox, everything seems to be setup correctly in my account, but it is still failing before triggering the onpaymentauthorized event.
No. Due to the redacted logs there is not a great way to know what is happening here so we have to dig deeper. A few common reasons this can happen when the payment is authorized are:
-
You are using a production Apple Pay account in a Sandbox environment.
-
You are using a production URL when requests a Merchant Session.
-
There is an issue with your authorization and an actual 500 error was produced.
-
Your Merchant Session is considered to have a bad signature because of issues with a Merchant Identity Certificate or Merchant Domain.
Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com