App rejected because of IAP bug

Hi everyone. I recently submitted one of my Unity games for App Review today and it got rejected. The rejection was related to an In-App Purchase issue in iOS 15.3 (which, at the time of writing, is the latest version). Their response is below:


We found that your in-app purchase products exhibited one or more bugs when reviewed on iPhone running iOS 15.3 on Wi-Fi.

--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.


A couple things to note. I'm not even using server-side validation for my IAPs. For this particular game, I'm using local validation. My IAPs also worked in the sandbox environment. Both the test builds and production builds are running identical code. Any ideas on what could be causing this?

Answered by JJNCreator in 704699022

Turns out Unity made a patch for the IAP package that did the trick! My game got approved yesterday!

The same situation for me, the only difference is the bug is on iPad with iOS 15.3 on Wi-Fi. My tests on real iPhone and iPad simulator (with 15.2) work fine.

The strange (and funny) thing is that two other apps of mine with the same purchase mechanism have been approved.

Accepted Answer

Turns out Unity made a patch for the IAP package that did the trick! My game got approved yesterday!

App rejected because of IAP bug
 
 
Q