Differentiating between Sandbox / Live ApplePay

Hi,


- I have a developer account with Apple

- I have created the Payment Processing Certificate

- I have done the merchant validation

- I have created the Merchant Identity Certificate

- I have created a few Sandbox test accounts to configure and test the application where I have made the necessary changes for Apple Pay to work

- When I use the sandbox test accounts on my iPhone 6 which inturn uses the Wallet Sandbox - The application works fine - The merchant validation URL that comes up is - https://apple-pay-gateway-cert.apple.com/paymentservices/startSessionand everything works fine

- When someone uses a normal non sandbox iCloud account - the application is not able to get a merchant session from apple - and the merchant validation URL that comes up is https://apple-pay-gateway-pr-pod2.apple.com/paymentservices/startSessionwhich is the production merchant validation URL as per apple pay documentation. This one returns a HTTP 400 and so the application doesnt get a valid session.


How is the system differentiating between these two ? What should I do to fix this issue ? Not able to understand clearly from the documentation. There doesnt seem to be a sandbox vs live configuration with respect to the setup in developer.apple.com/apple-pay or in my account..


Please help.


Thanks

-Naga