Skip to main content
Solved

The receipt is not valid. The purchased product was missing in the receipt. This is typically due to a bug in StoreKit.


Did this post help you find an answer to your question?
Show first post
This post has been closed for comments

29 replies

Forum|alt.badge.img+5
  • Dedicated Member
  • 17 replies
  • September 5, 2024

 

Talicom wrote:

I have been going crazy with this problem that suddenly caused my Flutter iOS app to be rejected by Apple for the first time in tens of versions over one year. I tried literally ALL the advice that helped people in ALL the many forums and pages on this darned error, and nothing helped until I saw this post. I created a new sandbox tester and the error went away immediately. Thank you Mike!

Hey Talicom,

I’m so glad I was able to help out a fellow developer in need! I feel like In-App Purchases are almost like voodoo. Even with RevenueCat greatly simplifying the process, there are still a lot of stars that need to align and magic incantations to invoke in order to get it working.


  • New Member
  • 1 reply
  • September 12, 2024
Talicom wrote:
Mike Davis wrote:

I hit this error today.  FWIW, I got around it in the (React Native) dev client by using a different (Apple) sandbox user for the purchase.  I think that after you use a sandbox user for enough purchases, Apple’s servers get confused after a while about which things that user has or hasn’t already purchased and they spit out errors.  This might not be the fix for everyone, but maybe it will help a few of you.

I have been going crazy with this problem that suddenly caused my Flutter iOS app to be rejected by Apple for the first time in tens of versions over one year. I tried literally ALL the advice that helped people in ALL the many forums and pages on this darned error, and nothing helped until I saw this post. I created a new sandbox tester and the error went away immediately. Thank you Mike!

P.S. This is a disgraceful situation for Apple to put developers in. A server going down temporarily (like what happened a year ago according to many posts) is one thing. But, rejecting apps on review repeatedly for no reason other than a bug in their sandbox testing, that can be easily avoided by using a new tester account, is inexcusable.​

 

I'm having the same problem in my Flutter iOS so I did this and deleted my sandbox user and created a new one (never used) and I'm still having the same issue and can't move forwards because of this error. Also, this is happening on my testing environment (on debug and on TestFlight), so it doesn't need apple's approve in this situation.

 

Using the flutter lib in version 8.1.1 and Apple's monitor service doesn't show anything down. 


Forum|alt.badge.img+1

If you're encountering issues with your app, particularly when testing subscriptions in a sandbox environment, you should be aware that RevenueCat imposes a limit of 100 subscription receipts per customer for performance reasons. This limit typically shouldn't affect production apps, but during testing, especially if you're simulating multiple subscription setups, you might hit this threshold.

Solution: Deleting the Customer in RevenueCat To resolve this, you can delete the specific customer and their associated receipts from the RevenueCat dashboard. This will clear the test environment for that user and allow you to simulate a fresh subscription setup.

For more details on how to delete customers in RevenueCat, refer to their documentation [https://www.revenuecat.com/docs/test-and-launch/sandbox/apple-app-store#ios-14-only-testing-on-the-simulator].


sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 513 replies
  • Answer
  • October 23, 2024

Hi all,

Thanks a bunch for all of the tips and tricks shared here! This thread is quite old and a lot has changed since the first post, so it’s time to close it to ensure people don’t mix up outdated info with legitimate workarounds. To summarize:

  1. RevenueCat now uses StoreKit 2 end-to-end from the SDK to the server. All of the edge cases and glitches have been resolved regarding the interaction between StoreKit 1 and 2. If you do see any issues, please open a new community post or support ticket so we can look into them. Nowadays we find StoreKit 2 to be more stable and feature rich compared to StoreKit 1, which Apple has deprecated. Any recent RevenueCat SDK version will use StoreKit 2 automatically.
  2. Testing with new sandbox users is always a good troubleshooting steps as sometimes old users with many purchases can bog down Apple’s sandbox system.
  3. Issues with Apple App Store rejections can sometimes be due to glitches in the sandbox environment that the reviewer uses. Most tips we’re aware of can be found in this guide: https://www.revenuecat.com/docs/test-and-launch/app-store-rejections

I’ve marked this reply as the best answer solely to display this reply on the front page for others to immediately see. Thank you all again for your contributions!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings