Sticky

iOS 'Receipt is invalid' Megathread

  • 8 February 2023
  • 37 replies
  • 1788 views

Userlevel 5
Badge +8
  • RevenueCat Staff
  • 438 replies

If you’re here, it’s probably because you’ve encountered an active issue related to Apple’s receipt verification.

RevenueCat relies upon Apple’s `verifyReceipt` endpoint which is currently facing an outage: https://developer.apple.com/system-status/

This seems to be affecting sandbox and TestFlight purchases only at this time, although Apple’s status page doesn’t mention it explicitly.

Encountering this issue? Post below ⬇️ RevenueCat isn’t able to resolve this at this time from our end, but it may help bring awareness and ease to other developers facing the same issue.

Update 2/8/23 19:20 UTC:

Customers (and me 😃) reporting things are working as expected again - post below if you’re still having trouble, seems like a slow rollout of a fix from Apple.

Update 2/8/23 17:40 UTC:

Apple’s reporting the issue is fixed, but we’re still encountering errors. Will provide another update as soon as possible.


37 replies

Badge

I spoke too soon

 

I forgot the Storekit testing framework. Once I added that and reset my simulator it worked!


Instructions for anyone else who got lost here: 

https://www.revenuecat.com/docs/apple-app-store#testflight

 

 

Badge

Still encountring this issue. 

Its very hard to move forward without testing the In-App-Purchase functionality in my App. 

A lot of funcitonalities depends on what happens after the purchase is successful, and there is no way I will move to production without testing the whole flow of the purchase. 

 

Any one figured out a work-around this ? 

 

Region: Middle East

Platform: React-Native, Expo CLI 

I’m having this same problem.

App review won’t validate my app because they can’t make purchases in the sandbox environment.

Region: Australia

Platform: iOS SwiftUI with TestFlight

Badge

I copied the example code that had usesStoreKit2IfAvailable set to true. I changed it false, and I see the error much less, but I have to release the app again.

Hey Todd, could you point me to this code? I am constantly getting this receipt issue.

Badge

I’m having this same problem.

App review won’t validate my app because they can’t make purchases in the sandbox environment.

Region: Australia

Platform: iOS SwiftUI with TestFlight

Me too!

Badge

Issue started again today

Badge +3

im seeing the issue still. some folks here suggested logout and login  of sandbox. is that the browser login ? or SDK ? is there a thing like that on SDK ?

 

I spoke too soon

 

I forgot the Storekit testing framework. Once I added that and reset my simulator it worked!


Instructions for anyone else who got lost here: 

https://www.revenuecat.com/docs/apple-app-store#testflight

 

 

Thanks @nick-a92e68 , This worked for me.

I am no more getting error.

Badge +3

For recent occurances, just force-quitting the app / restarting the app solved the issue. 

Badge

I encountered this issue in Sandbox yesterday and still see it today. Not sure if I can start review submission because reviewers will probably see the same. I tried on two different devices and accounts. Everything was working fine before yesterday’s evening…

ERROR: 😿‼️ The receipt is not valid.

 

I can also see this. I’m in process of evaluating Revenuecat on iOS and after successful transaction in sandbox I get error:

PlatformException(8, The receipt is not valid., {readable_error_code: INVALID_RECEIPT, message: The receipt is not valid., userCancelled: false, underlyingErrorMessage: The receipt is not valid., readableErrorCode: INVALID_RECEIPT, code: 8}, null)

 

I’m wondering if there is some issue in my setup or it’s sandbox/Apple fault.

Badge

I encountered this issue in Sandbox yesterday and still see it today. Not sure if I can start review submission because reviewers will probably see the same. I tried on two different devices and accounts. Everything was working fine before yesterday’s evening…

ERROR: 😿‼️ The receipt is not valid.

 

Started working today but after adding (re-adding) the App Store Connect App-Specific Shared Secret in the app’s dashboard. I was convinced that the secret was added earlier, but today it turned out that it was not. It seems that RevenueCat by some strange coincidence did not save the changes, the field was empty. I then deleted the key again to make sure that was the cause, and indeed it stopped working again (invalid receipt). After adding the key again, today it works...

Reply