Skip to main content
Solved

StoreKitTest rereceipt is not valid error


Forum|alt.badge.img+4

Testing on iPadPro simulator, when I try to purchase I see native alert of Apple which shows successful purchase but purchase function handler returns error below. I didn’t set  .with(usesStoreKit2IfAvailable: true) 
 
SDK:RevenueCat (4.22.0)

  Purchases.shared.purchase(package:selectedPackage) { transaction, purchaseInfo, error, userCancelled in
[Purchases] - ERROR: 💰 Product purchase for '1_Credit' failed with error: Error Domain=RevenueCat.ErrorCode Code=8 "The receipt is not valid." UserInfo={source_function=parseUnsuccessfulResponse(), readable_error_code=INVALID_RECEIPT, rc_response_status_code=400, source_file=RevenueCat/HTTPClient.swift:528, NSLocalizedDescription=The receipt is not valid., rc_backend_error_code=7103, NSUnderlyingError=0x6000031e1fe0 {Error Domain=RevenueCat.BackendErrorCode Code=7103 "The receipt is not valid." UserInfo={NSLocalizedDescription=The receipt is not valid., rc_backend_error_code=7103}}}

Best answer by MarcosC

Hi @ozgur 

Are you using a storekit configuration file? if so, have you uploaded the corresponding certificate to RevenueCat?

 

 

Link: https://www.revenuecat.com/docs/apple-app-store#ios-14-only-testing-on-the-simulator

View original
Did this post help you find an answer to your question?

3 replies

MarcosC
RevenueCat Staff
Forum|alt.badge.img+7
  • RevenueCat Staff
  • 161 replies
  • Answer
  • June 21, 2023

Hi @ozgur 

Are you using a storekit configuration file? if so, have you uploaded the corresponding certificate to RevenueCat?

 

 

Link: https://www.revenuecat.com/docs/apple-app-store#ios-14-only-testing-on-the-simulator


Forum|alt.badge.img+4
  • Author
  • New Member
  • 4 replies
  • June 21, 2023

Hi @MarcosC yes I’m using storekit config file. I didn’t upload it there, will check it again after uploading, thanks for the info.


Forum|alt.badge.img+4
  • Author
  • New Member
  • 4 replies
  • June 21, 2023

thank you @MarcosC it worked. 


Reply


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