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
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