Error: The receipt is not valid. The purchased product was missing in the receipt. This is typically due to a bug in StoreKit.
I think I found a bug with the react-native-purchases purchaseProduct method on iOS (not android).
See the types in the screenshot attached (the function invocation in the screenshot works, without the optional parameters it does not on iOS). I also see it says “subs by default”, but on a subscription purchase it does not work without explicitly supplying the PurchaseTypes.SUBS enum value. Revenue Cat lists the first parameter as required and the other 2 parameters as optional (upgradeInfo?, type?). However, if you don’t supply the second 2 parameters on iOS an exception is thrown with error message - “Error: The receipt is not valid. The purchased product was missing in the receipt. This is typically due to a bug in StoreKit.” This took me a while to figure out as the types seem to be incorrect here, they should be required because without them this exception is thrown. For anyone encountering this error on react-native-purchases purchaseProduct method, this was the fix for me and it was pretty confusing. Is this a bug?
Thanks!
Possible bug with react-native-purchases
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.