Sticky

iOS 'Receipt is invalid' Megathread

  • 8 February 2023
  • 37 replies
  • 1831 views

Userlevel 5
Badge +8
  • RevenueCat Staff
  • 449 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 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...

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.

 

Badge +3

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

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

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 ?

 

Badge

Issue started again today

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

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.

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

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 

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

 

 

Userlevel 1
Badge +5

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.

Badge

cc @cody Looks like this is back???

:( 

Badge

I’m getting this today as well

 

Domain=RevenueCat.ErrorCode Code=8 "The receipt is not valid." UserInfo={source_function=convertUnsuccessfulResponseToError(), source_file=RevenueCat/HTTPClient.swift:415, NSLocalizedDescription=The receipt is not valid., readable_error_code=INVALID_RECEIPT, NSUnderlyingError=0x600003a040c0 {Error Domain=RevenueCat.BackendErrorCode Code=7103 "The receipt is not valid." UserInfo={NSLocalizedDescription=The receipt is not valid., rc_backend_error_code=7103}}, rc_response_status_code=400, rc_backend_error_code=7103}

Userlevel 1
Badge +5

I just got this today. Is it still a thing?

Userlevel 1
Badge +5

Still seeing this on the most recent version of the revenue cat SDK (react native js). This is not an issue production at all? Only in testFlight?
 

 

Badge +4

I still have the issue with a StoreKit config file and iOS simulator. Are there any updates on this issue?

I'm trying via testflight and it's working correctly, I haven't tested it with StoreKit

I still have the issue with a StoreKit config file and iOS simulator. Are there any updates on this issue?

Hi! Worked for a few hours and the problems started again. Is it really so? The Apple page says that the service is working properly, but I started getting sandbox errors again

 

update: worked again after several attempts, without changing anything

Badge +4

Signing out and back in with a sandbox account worked, but logging in with my iCloud account on TestFlight still did not work!  I know behind the scenes Apple makes a Sandbox account for TestFlight users, how can I force it to log out of that account to fix this issue?

Try creating a new tester account

Badge +1

Signing out and back in with a sandbox account worked, but logging in with my iCloud account on TestFlight still did not work!  I know behind the scenes Apple makes a Sandbox account for TestFlight users, how can I force it to log out of that account to fix this issue?

Badge +4

Thanks @Chris-29 my subscriptions are working now.
Hey @Dylan Thomas and @user9837291 try the @Chris-29 `s solution.

Userlevel 2
Badge +3

Those of you still having trouble try signing out of your sandbox account and back in again.  On my iPad I just tried a sub purchase and it was failing repeatedly.  After sign out/in it worked on the first attempt.

Badge +1

Same here in Europe. Not resolved! Still not working. Expo with Revenuecat eas development build:

{"code":"8","message":"The receipt is not valid.","domain":"RevenueCat.ErrorCode","userInfo":{"NSUnderlyingError":{"code":"7103","message":"underlying error","domain":"RevenueCat.BackendErrorCode","userInfo":{"NSLocalizedDescription":"The receipt is not valid."},"nativeStackIOS" blablabla

Reply