Test paying the app price on app store
complete
A
Ali El-madhoun
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.
Plus, I tried to fetch the user purchase info form Adapty, and Adapty responded that the user has no subscription, no non-subscription and has no access levels!
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.
Adapty Support
complete
A
Adapty Support
Hey there!
Here’s how Adapty will help you with syncing subscription states across all the platforms:
Create a user in Adapty. You should do it for all existing users in your database (aMember) and also for all new users registrations that happen outside of Adapty ie, not in the mobile app. There’s an API call to create a user in Adapty from your server. You only have to pass your customer ID as customer_user_id. With this ID we can later sync the subscription state between Adapty and your system.
For all customers with an active subscription you should grant an access level in Adapty. This will let Adapty know about active subscriptions. You should also call this API method every time someone activates, renews, or refunds a subscription outside of Adapty.
In your mobile app you will have an authentication system. In the first step it will be aMember, later you can replace it with something better. When the user logs in to his account, you should pass the user ID to Adapty.
When customer makes a purchase in a mobile app, Adapty will send a webhook to your server with all properties you may need to update the subscription in your database and with customer_user_id.
Hopefully it helps!