Verification Error in Production: Should I Submit My App with the Backend in Sandbox Mode?

Hello,

My payment system works correctly when my backend is in sandbox mode, but when I submit my app for review, I get the following error:

VerificationException [Error]
    at SignedDataVerifier.verifyNotification (/Users/---/node_modules/@apple/app-store-server-library/dist/jws_verification.js:126:19)
    at SignedDataVerifier.verifyAndDecodeNotification (/Users/---/node_modules/@apple/app-store-server-library/dist/jws_verification.js:121:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async file:///Users/---/src/api/routes/apple.routes.js:22:18 {
  status: 2,
  cause: undefined
}

Main Question For Apple to approve in-app purchases, should I submit my app for review with the backend in sandbox mode or production?

Possible Causes of the Error I would appreciate any suggestions on what might be causing this error and how to fix it.

Thanks in advance! 🚀

Verification Error in Production: Should I Submit My App with the Backend in Sandbox Mode?
 
 
Q