App Store Server + App Store Notification V2 + Apple Review

Hello

With V1 notifications, all you had to do was check status 21007 in production to switch to sandbox, but with V2 how do you do that? At best you get a 401 if you query production with a sandbox transactionID.

How can I ensure that transaction validation via AppStore Server uses the correct environment during the Apple review? What is the procedure for V2 notifications and Apple review?

If my code deployed in production is on the product environment, what happens at review time?

I don't think anyone on the web has asked this question...

Any help would be appreciated

Nicolas

Replies

We recommend using separate Sandbox and Product notification URLs, which allows you to know the environment before you decode the notification. Also, the notification contains the environment https://developer.apple.com/documentation/appstoreservernotifications/environment