Test paying the app price on app store

Hello! I have an application on App Store with version 2. This is app in not free on app store, it cost the user 10$ to be able to download it.

But now, in version 3, I’m planning to make the application for free to download from Appstore, but there will a subscription plans inside the application.

Plus, I want to give a promo code as compensation for old users(who downloaded the version2 of the app and paid it’s cost 10$ on App Store)

To check if the user has bought the app from App Store, I tried to fetch the App Store recipient data from Bundle.main.appStoreReceiptURL, but it appears the file is not exist since I’m running to app from Xcode.

https://developer.apple.com/documentation/storekit/in-app_purchase/original_api_for_in-app_purchase/testing_in-app_purchases_in_xcode?language=objc

So, my question is: How I test the compensation scenario in sandbox?

Plus, can we consider paying the app price on App Store as non consumable product? Thanks in advance.

Hello, when changing business models you will use the original_application_version to determine the version of the app the customer first purchased. so if that version is <3.0 you know the customer paid for your app, therefore you are obligated to continue providing them the same features they purchased originally and suppress your new IAP’s for new customers (original_application_version equal or greater than version 3.0).

This data is available with App Receipts and in appTransaction

Test paying the app price on app store
 
 
Q