Skip to main content
Solved

Error: The receipt is not valid on Catalyst

  • October 29, 2022
  • 3 replies
  • 308 views

Forum|alt.badge.img+4

Hi,

I don’t know why I am getting this error. It was working well before on iOS, except on catalyst.

Then I’ve broken all this!

Purchase failed. Error Domain=RevenueCat.ErrorCode Code=0 "Unknown error." UserInfo={source_function=purchase(sk2Product:promotionalOffer:completion:), NSUnderlyingError=0x600001be9080 {Error Domain=RevenueCat.ErrorCode Code=8 “The receipt is not valid." UserInfo={source_function=convertUnsuccessfulResponseToError(),

 

Note that after purchasing the product I see a message saying: “You’re all set, your purchase was successful.”

 

Do you have an idea where to look at?

I triple checked all keys & config. (bundle id, shared secret, ...)

 

Thanks

Best answer by Haley Pace

That’s great that you checked your bundle ID and shared secret, those are potential causes of this.

Usually the 'receipt is not valid' error indicates an error with configuration, so there could be something else you missed. Can you confirm a few things for me:
- You've followed the StoreKit test guide (valid for simulator and device): https://docs.revenuecat.com/docs/apple-app-store#ios-14-only-testing-on-the-simulator
- You're using the latest Purchases SDK
- You've re-uploaded the StoreKit certificate after making any changes to products or code-signing
- All of your products in the StoreKit file are listed in the RevenueCat dashboard 

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

3 replies

Forum|alt.badge.img+8
  • RevenueCat Staff
  • 539 replies
  • Answer
  • November 2, 2022

That’s great that you checked your bundle ID and shared secret, those are potential causes of this.

Usually the 'receipt is not valid' error indicates an error with configuration, so there could be something else you missed. Can you confirm a few things for me:
- You've followed the StoreKit test guide (valid for simulator and device): https://docs.revenuecat.com/docs/apple-app-store#ios-14-only-testing-on-the-simulator
- You're using the latest Purchases SDK
- You've re-uploaded the StoreKit certificate after making any changes to products or code-signing
- All of your products in the StoreKit file are listed in the RevenueCat dashboard 


Forum|alt.badge.img+4
  • Author
  • Member
  • 7 replies
  • November 4, 2022

Hi Haley,

thanks for your help. StoreKit certificate was the problem. It’s working now.

are non consumable product are being displayed in dashboard on is it only displaying subscriptions?


Forum|alt.badge.img+8
  • RevenueCat Staff
  • 539 replies
  • November 4, 2022

Great, glad it helped! Yes, on the dashboard subscriptions, and consumable/non-consumable products are displayed.


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