I tested my app for payment on Test Flight and it works fine
I submitted my app and I get the following error message.
I am not sure on how to reproduce this issue. Any pointers much appreciated.
Hello,
Thank you for providing this information.
Upon further review, we found that your app does not comply with the following guidelines:
Guideline 2.1 - Performance - App Completeness
We found that your in-app purchase products exhibited one or more bugs when reviewed on iPhone running iOS 15.3.1 on Wi-Fi.
Specifically, when we tried to top up credit, we were receiving a message saying “Purchase cancelled”.
Next Steps
When validating receipts on your server, your server needs to be able to handle a production-signed app getting its receipts from Apple’s test environment. The recommended approach is for your production server to always validate receipts against the production App Store first. If validation fails with the error code "Sandbox receipt used in production," you should validate against the test environment instead.
Resources
You can learn more about testing in-app purchase products in your development sandbox environment in App Store Connect Developer Help.
For more information on receipt validation, please see What url should I use to verify my receipt? in the In-App Purchase FAQ.
Learn how to generate a receipt validation code in App Store Connect Developer Help.
Best regards,
App Store Review
Please see attached screenshots for details.