# Error IAP RevenueCat: The receipt is not valid, bug in StoreKit

**URL:** <https://community.thunkable.com/t/error-iap-revenuecat-the-receipt-is-not-valid-bug-in-storekit/2867670>\
**Category:** Issues / Bugs\
**Created:** [March 1, 2024, 1:26pm UTC](https://community.thunkable.com/t/error-iap-revenuecat-the-receipt-is-not-valid-bug-in-storekit/2867670 "2024-03-01T13:26:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![maurizio.polverini89](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maurizio.polverini89/32/145191_2.png) [@maurizio.polverini89](https://community.thunkable.com/u/maurizio.polverini89)\
**Post date:** [March 1, 2024, 1:26pm UTC](https://community.thunkable.com/t/error-iap-revenuecat-the-receipt-is-not-valid-bug-in-storekit/2867670/1 "2024-03-01T13:26:19Z")

</div>

Hi there,

i recently installed RevenueCat in one of my app. It was just working fine, i tested in TestFlight and it was working. I sent it yesterday for rewieng, but it got rejected from Apple as they experienced an error:

> The receipt is not valid. The purchased product was missing in the receipt. This is typically due to a bug in StoreKit.

I looked on internet and in the RevenueCat community, especially [this post here](https://community.revenuecat.com/sdks-51/the-receipt-is-not-valid-the-purchased-product-was-missing-in-the-receipt-this-is-typically-due-to-a-bug-in-storekit-2719), but it seems like the solution is something i can’t change?

Let me know if you have any experiences on this and how can i solve it  
Lookig forward for kind asnwers

Thank you

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [March 1, 2024, 6:05pm UTC](https://community.thunkable.com/t/error-iap-revenuecat-the-receipt-is-not-valid-bug-in-storekit/2867670/2 "2024-03-01T18:05:29Z")

</div>

Hello @maurizio.polverini89  
Thank you for reporting this issue. We have flagged it to our team and will provide an update as soon as possible.

---

<div class="post-metadata">

**Author:** ![maurizio.polverini89](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maurizio.polverini89/32/145191_2.png) [@maurizio.polverini89](https://community.thunkable.com/u/maurizio.polverini89)\
**Post date:** [March 1, 2024, 8:52pm UTC](https://community.thunkable.com/t/error-iap-revenuecat-the-receipt-is-not-valid-bug-in-storekit/2867670/3 "2024-03-01T20:52:06Z")

</div>

Hopefully this can be helpful too:

> ### **Guideline 2.1 - Performance - App Completeness**
> 
> We found that your in-app purchase products exhibited one or more bugs which create a poor user experience. Specifically, the app displayed an error message when we tapped on “Acquista piano professionale” and we were unable to continue. Please review the details and resources below and complete the next steps.
> 
> Review device details:
> 
> - Device type: iPad Air (5th generation)
> - OS version: iOS 17.3.1
> 
> **Next Steps**
> 
> When validating receipts on your server, your server needs to be able to handle a production-signed app getting its receipts from Apple’s test environment. The recommended approach is for your production server to always validate receipts against the production App Store first. If validation fails with the error code “Sandbox receipt used in production,” you should validate against the test environment instead.
> 
> **Resources**
> 
> - Learn how to [set up](https://developer.apple.com/help/app-store-connect/test-in-app-purchases-main/test-in-app-purchases) and [test](https://developer.apple.com/documentation/storekit/in-app_purchase/testing_in-app_purchases_with_sandbox) in-app purchase products in the sandbox environment.
> - For more information on receipt validation, see the [In-App Purchase FAQ](https://developer.apple.com/library/archive/technotes/tn2413/_index.html#//apple_ref/doc/uid/DTS40016228-CH1-RECEIPTURL).
> - If your app makes a [SKReceiptRefreshRequest](https://developer.apple.com/documentation/storekit/skreceiptrefreshrequest) call and fails, do not retry the call. Assume the user does not have access. Continue by making the [addPayment](https://developer.apple.com/documentation/storekit/skpaymentqueue/1506036-addpayment) call.
> - If your app makes a [SKReceiptRefreshRequest](https://developer.apple.com/documentation/storekit/skreceiptrefreshrequest) call to restore previously purchased in-app purchases, make sure the app calls [restoreCompletedTransactions](https://developer.apple.com/documentation/storekit/skpaymentqueue/1506123-restorecompletedtransactions) when the user selects the “Restore” button.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [March 27, 2024, 1:04pm UTC](https://community.thunkable.com/t/error-iap-revenuecat-the-receipt-is-not-valid-bug-in-storekit/2867670/5 "2024-03-27T13:04:00Z")

</div>

Hello @maurizio.polverini89  
Thank you for your patience.  
We have flagged it to our engineering team. We’re committed to finding a resolution quickly, and we will keep you updated as soon as there is any progress.  
It seems to be an issue with IAP and we will need to update our platform. We don’t have a specific timeline for that yet.

---

<div class="post-metadata">

**Author:** ![beatbaba7leb](https://avatars.discourse-cdn.com/v4/letter/b/c57346/32.png) [@beatbaba7leb](https://community.thunkable.com/u/beatbaba7leb)\
**Post date:** [March 27, 2024, 2:36pm UTC](https://community.thunkable.com/t/error-iap-revenuecat-the-receipt-is-not-valid-bug-in-storekit/2867670/6 "2024-03-27T14:36:15Z")

</div>

Does this mean IAP has an issue and I should not use it. I have not use IAP EVER, was planning to use it. Should I drop that plan for now. Or it is just an error on a specific instant

---

<div class="post-metadata">

**Author:** ![maurizio.polverini89](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maurizio.polverini89/32/145191_2.png) [@maurizio.polverini89](https://community.thunkable.com/u/maurizio.polverini89)\
**Post date:** [March 27, 2024, 5:03pm UTC](https://community.thunkable.com/t/error-iap-revenuecat-the-receipt-is-not-valid-bug-in-storekit/2867670/7 "2024-03-27T17:03:06Z")

</div>

update:

Apparently the issue got solved from Apple side (at least mine).  
So i’d suggest you to continue with IAP component
