Summary
![](https://framerusercontent.com/images/fDIrmPghybqpjI3EFj0xqeHJ4.jpg)
Test in-app purchases
Testing in-app purchases in the sandbox environment is a crucial step in ensuring that your app is functioning properly before submitting it to the App Store. The sandbox environment simulates the App Store environment, allowing you to test the entire process of purchasing an item in your app without actually charging your users.
![How to Test iOS In-App Purchases with Sandbox](https://framerusercontent.com/images/fDIrmPghybqpjI3EFj0xqeHJ4.jpg)
Prerequisites to test iOS in-app purchases
Add a testing account to App Store Connect
To start, add a testing account to App Store Connect.
Go to Users and Access and click on Sandbox Testers.
Click the add button (+).
Enter the necessary tester information and click on Create.
You can use the “+” symbol for the email to prevent you from creating a new email for every user.
Please note that once the Sandbox Apple ID is created, the tester’s name, email, and password cannot be edited.
![](https://framerusercontent.com/images/qrgIAfEnFCNKpkyIACtRJaTou4k.png)
Test in-app purchases
Sandbox durations for testing subscriptions
After adding testers in Sandbox, you can choose a subscription renewal speed for each tester, allowing you to determine how quickly subscriptions renew. By default, the accounts are set to a speed equalization of 1 month = 5 minutes. However, you can adjust the renewal period speed based on the options below.
Subscriptions will automatically renew up to 12 times per account, but the actual number of renewals is random — in our practice, it’s up to 6.
![](https://framerusercontent.com/images/B42A8tKdsDOlNdntfFbiGWxSpis.png)
In App Store Connect, you can select a subscription renewal rate for each Sandbox Apple ID account.
Test iOS subscriptions with Sandbox
To test whether you iOS subscriptions work properly, use testing device:
Go to Settings > App Store > Log into Sandbox tester account.
Initiate a purchase in your app.
You might be asked to fill in your account details again. You might not expect this, but that’s normal.
Wait for the alert from Apple about the successful purchase.
Test upgrades, downgrades, and crossgrades iOS subscriptions in Sandbox
To test upgrades, downgrades, and crossgrades of iOS subscriptions in the sandbox environment, you can follow the steps below:
Subscribe to the monthly subscription within your app.
Open the Settings app on your device and go to “App Store” under your Sandbox account.
Tap “Manage” and then select “Subscriptions.”
Choose your existing subscription and select a different product from the list of options to change your subscription. If you want to downgrade your subscription, you’ll need to wait 5-10 minutes before proceeding to the next step.
Launch your app again.
Verify that the user is subscribed to the new product and that the changes to the subscription have taken effect.
Test subscription cancellation on iOS
Disable Auto-renew:
On your iOS device, go to Settings > App Store.
Under the Sandbox Account section, tap on your highlighted Sandbox Apple ID and select “Manage.”
Choose the subscription product that you want to cancel from the Subscriptions page.
Tap on the “Cancel Subscription” button.
No active subscriptions could be found.
Reenable subscription renewal:
On the same “Manage Subscriptions” page, tap on the canceled subscription and confirm the payment to reenable the subscription renewal.
Test Restore Purchase on iOS
To test the functionality of restoring a purchase during an active subscription in the iOS sandbox environment, it is important to note that unlike the production sandbox and production environments, there is no receipt file generated on the device until a purchase is made. Therefore, to fully test restoring a purchase in the Sandbox, a button, gesture, or another method needs to be added to the app to revert it to the unsubscribed state.
Testing the restoration of a purchase during an active subscription in the sandbox environment involves the following steps:
Sign up for a monthly subscription.
Reinstall the app and make sure that you don’t have any subscriptions there.
Use a button or gesture that was added to revert the app to the unsubscribed state.
Tap the “Restore Purchases” button.
If this is done before the subscription cycle ends (within 35 minutes), the app should detect an active subscription and change to the subscribed state.
To test the restoration of purchases across devices in the sandbox environment, follow these steps:
Subscribe to a monthly plan on device A.
Install the app on device B before the subscription expires.
Log into the same Sandbox account used on device A.
Launch the app on device B.
Tap the “Restore Purchases” button.
Test billing issues on iOS
After WWDC22, Apple added a capability to simulate billing failures. To learn more about how to test billing issues in detail, read this article or official documentation.
Conclusion
Once you have tested the entire process, you can implement your in-app purchases in your production app. It is important to note that you will need to use different settings and test user accounts in your production app than you used in the sandbox environment.
In summary, testing in-app purchases in the sandbox environment is a crucial step in ensuring that your app is functioning properly before submitting it to the App Store.
Qonversion is an all-in-one solution that provides developers with a cross-platform infrastructure for managing subscriptions and users’ access between iOS and web platforms. With Qonversion, you can ensure that your subscription model works seamlessly across all devices, minimizing the possibility of billing issues. It also provides a comprehensive analytics dashboard with valuable insights into user behavior and subscription performance.
![](https://framerusercontent.com/images/fDIrmPghybqpjI3EFj0xqeHJ4.jpg)
Test in-app purchases
Testing in-app purchases in the sandbox environment is a crucial step in ensuring that your app is functioning properly before submitting it to the App Store. The sandbox environment simulates the App Store environment, allowing you to test the entire process of purchasing an item in your app without actually charging your users.
![How to Test iOS In-App Purchases with Sandbox](https://framerusercontent.com/images/fDIrmPghybqpjI3EFj0xqeHJ4.jpg)
Prerequisites to test iOS in-app purchases
Add a testing account to App Store Connect
To start, add a testing account to App Store Connect.
Go to Users and Access and click on Sandbox Testers.
Click the add button (+).
Enter the necessary tester information and click on Create.
You can use the “+” symbol for the email to prevent you from creating a new email for every user.
Please note that once the Sandbox Apple ID is created, the tester’s name, email, and password cannot be edited.
![](https://framerusercontent.com/images/qrgIAfEnFCNKpkyIACtRJaTou4k.png)
Test in-app purchases
Sandbox durations for testing subscriptions
After adding testers in Sandbox, you can choose a subscription renewal speed for each tester, allowing you to determine how quickly subscriptions renew. By default, the accounts are set to a speed equalization of 1 month = 5 minutes. However, you can adjust the renewal period speed based on the options below.
Subscriptions will automatically renew up to 12 times per account, but the actual number of renewals is random — in our practice, it’s up to 6.
![](https://framerusercontent.com/images/B42A8tKdsDOlNdntfFbiGWxSpis.png)
In App Store Connect, you can select a subscription renewal rate for each Sandbox Apple ID account.
Test iOS subscriptions with Sandbox
To test whether you iOS subscriptions work properly, use testing device:
Go to Settings > App Store > Log into Sandbox tester account.
Initiate a purchase in your app.
You might be asked to fill in your account details again. You might not expect this, but that’s normal.
Wait for the alert from Apple about the successful purchase.
Test upgrades, downgrades, and crossgrades iOS subscriptions in Sandbox
To test upgrades, downgrades, and crossgrades of iOS subscriptions in the sandbox environment, you can follow the steps below:
Subscribe to the monthly subscription within your app.
Open the Settings app on your device and go to “App Store” under your Sandbox account.
Tap “Manage” and then select “Subscriptions.”
Choose your existing subscription and select a different product from the list of options to change your subscription. If you want to downgrade your subscription, you’ll need to wait 5-10 minutes before proceeding to the next step.
Launch your app again.
Verify that the user is subscribed to the new product and that the changes to the subscription have taken effect.
Test subscription cancellation on iOS
Disable Auto-renew:
On your iOS device, go to Settings > App Store.
Under the Sandbox Account section, tap on your highlighted Sandbox Apple ID and select “Manage.”
Choose the subscription product that you want to cancel from the Subscriptions page.
Tap on the “Cancel Subscription” button.
No active subscriptions could be found.
Reenable subscription renewal:
On the same “Manage Subscriptions” page, tap on the canceled subscription and confirm the payment to reenable the subscription renewal.
Test Restore Purchase on iOS
To test the functionality of restoring a purchase during an active subscription in the iOS sandbox environment, it is important to note that unlike the production sandbox and production environments, there is no receipt file generated on the device until a purchase is made. Therefore, to fully test restoring a purchase in the Sandbox, a button, gesture, or another method needs to be added to the app to revert it to the unsubscribed state.
Testing the restoration of a purchase during an active subscription in the sandbox environment involves the following steps:
Sign up for a monthly subscription.
Reinstall the app and make sure that you don’t have any subscriptions there.
Use a button or gesture that was added to revert the app to the unsubscribed state.
Tap the “Restore Purchases” button.
If this is done before the subscription cycle ends (within 35 minutes), the app should detect an active subscription and change to the subscribed state.
To test the restoration of purchases across devices in the sandbox environment, follow these steps:
Subscribe to a monthly plan on device A.
Install the app on device B before the subscription expires.
Log into the same Sandbox account used on device A.
Launch the app on device B.
Tap the “Restore Purchases” button.
Test billing issues on iOS
After WWDC22, Apple added a capability to simulate billing failures. To learn more about how to test billing issues in detail, read this article or official documentation.
Conclusion
Once you have tested the entire process, you can implement your in-app purchases in your production app. It is important to note that you will need to use different settings and test user accounts in your production app than you used in the sandbox environment.
In summary, testing in-app purchases in the sandbox environment is a crucial step in ensuring that your app is functioning properly before submitting it to the App Store.
Qonversion is an all-in-one solution that provides developers with a cross-platform infrastructure for managing subscriptions and users’ access between iOS and web platforms. With Qonversion, you can ensure that your subscription model works seamlessly across all devices, minimizing the possibility of billing issues. It also provides a comprehensive analytics dashboard with valuable insights into user behavior and subscription performance.
![](https://framerusercontent.com/images/fDIrmPghybqpjI3EFj0xqeHJ4.jpg)
Test in-app purchases
Testing in-app purchases in the sandbox environment is a crucial step in ensuring that your app is functioning properly before submitting it to the App Store. The sandbox environment simulates the App Store environment, allowing you to test the entire process of purchasing an item in your app without actually charging your users.
![How to Test iOS In-App Purchases with Sandbox](https://framerusercontent.com/images/fDIrmPghybqpjI3EFj0xqeHJ4.jpg)
Prerequisites to test iOS in-app purchases
Add a testing account to App Store Connect
To start, add a testing account to App Store Connect.
Go to Users and Access and click on Sandbox Testers.
Click the add button (+).
Enter the necessary tester information and click on Create.
You can use the “+” symbol for the email to prevent you from creating a new email for every user.
Please note that once the Sandbox Apple ID is created, the tester’s name, email, and password cannot be edited.
![](https://framerusercontent.com/images/qrgIAfEnFCNKpkyIACtRJaTou4k.png)
Test in-app purchases
Sandbox durations for testing subscriptions
After adding testers in Sandbox, you can choose a subscription renewal speed for each tester, allowing you to determine how quickly subscriptions renew. By default, the accounts are set to a speed equalization of 1 month = 5 minutes. However, you can adjust the renewal period speed based on the options below.
Subscriptions will automatically renew up to 12 times per account, but the actual number of renewals is random — in our practice, it’s up to 6.
![](https://framerusercontent.com/images/B42A8tKdsDOlNdntfFbiGWxSpis.png)
In App Store Connect, you can select a subscription renewal rate for each Sandbox Apple ID account.
Test iOS subscriptions with Sandbox
To test whether you iOS subscriptions work properly, use testing device:
Go to Settings > App Store > Log into Sandbox tester account.
Initiate a purchase in your app.
You might be asked to fill in your account details again. You might not expect this, but that’s normal.
Wait for the alert from Apple about the successful purchase.
Test upgrades, downgrades, and crossgrades iOS subscriptions in Sandbox
To test upgrades, downgrades, and crossgrades of iOS subscriptions in the sandbox environment, you can follow the steps below:
Subscribe to the monthly subscription within your app.
Open the Settings app on your device and go to “App Store” under your Sandbox account.
Tap “Manage” and then select “Subscriptions.”
Choose your existing subscription and select a different product from the list of options to change your subscription. If you want to downgrade your subscription, you’ll need to wait 5-10 minutes before proceeding to the next step.
Launch your app again.
Verify that the user is subscribed to the new product and that the changes to the subscription have taken effect.
Test subscription cancellation on iOS
Disable Auto-renew:
On your iOS device, go to Settings > App Store.
Under the Sandbox Account section, tap on your highlighted Sandbox Apple ID and select “Manage.”
Choose the subscription product that you want to cancel from the Subscriptions page.
Tap on the “Cancel Subscription” button.
No active subscriptions could be found.
Reenable subscription renewal:
On the same “Manage Subscriptions” page, tap on the canceled subscription and confirm the payment to reenable the subscription renewal.
Test Restore Purchase on iOS
To test the functionality of restoring a purchase during an active subscription in the iOS sandbox environment, it is important to note that unlike the production sandbox and production environments, there is no receipt file generated on the device until a purchase is made. Therefore, to fully test restoring a purchase in the Sandbox, a button, gesture, or another method needs to be added to the app to revert it to the unsubscribed state.
Testing the restoration of a purchase during an active subscription in the sandbox environment involves the following steps:
Sign up for a monthly subscription.
Reinstall the app and make sure that you don’t have any subscriptions there.
Use a button or gesture that was added to revert the app to the unsubscribed state.
Tap the “Restore Purchases” button.
If this is done before the subscription cycle ends (within 35 minutes), the app should detect an active subscription and change to the subscribed state.
To test the restoration of purchases across devices in the sandbox environment, follow these steps:
Subscribe to a monthly plan on device A.
Install the app on device B before the subscription expires.
Log into the same Sandbox account used on device A.
Launch the app on device B.
Tap the “Restore Purchases” button.
Test billing issues on iOS
After WWDC22, Apple added a capability to simulate billing failures. To learn more about how to test billing issues in detail, read this article or official documentation.
Conclusion
Once you have tested the entire process, you can implement your in-app purchases in your production app. It is important to note that you will need to use different settings and test user accounts in your production app than you used in the sandbox environment.
In summary, testing in-app purchases in the sandbox environment is a crucial step in ensuring that your app is functioning properly before submitting it to the App Store.
Qonversion is an all-in-one solution that provides developers with a cross-platform infrastructure for managing subscriptions and users’ access between iOS and web platforms. With Qonversion, you can ensure that your subscription model works seamlessly across all devices, minimizing the possibility of billing issues. It also provides a comprehensive analytics dashboard with valuable insights into user behavior and subscription performance.
![](https://framerusercontent.com/images/fDIrmPghybqpjI3EFj0xqeHJ4.jpg)
Test in-app purchases
Testing in-app purchases in the sandbox environment is a crucial step in ensuring that your app is functioning properly before submitting it to the App Store. The sandbox environment simulates the App Store environment, allowing you to test the entire process of purchasing an item in your app without actually charging your users.
![How to Test iOS In-App Purchases with Sandbox](https://framerusercontent.com/images/fDIrmPghybqpjI3EFj0xqeHJ4.jpg)
Prerequisites to test iOS in-app purchases
Add a testing account to App Store Connect
To start, add a testing account to App Store Connect.
Go to Users and Access and click on Sandbox Testers.
Click the add button (+).
Enter the necessary tester information and click on Create.
You can use the “+” symbol for the email to prevent you from creating a new email for every user.
Please note that once the Sandbox Apple ID is created, the tester’s name, email, and password cannot be edited.
![](https://framerusercontent.com/images/qrgIAfEnFCNKpkyIACtRJaTou4k.png)
Test in-app purchases
Sandbox durations for testing subscriptions
After adding testers in Sandbox, you can choose a subscription renewal speed for each tester, allowing you to determine how quickly subscriptions renew. By default, the accounts are set to a speed equalization of 1 month = 5 minutes. However, you can adjust the renewal period speed based on the options below.
Subscriptions will automatically renew up to 12 times per account, but the actual number of renewals is random — in our practice, it’s up to 6.
![](https://framerusercontent.com/images/B42A8tKdsDOlNdntfFbiGWxSpis.png)
In App Store Connect, you can select a subscription renewal rate for each Sandbox Apple ID account.
Test iOS subscriptions with Sandbox
To test whether you iOS subscriptions work properly, use testing device:
Go to Settings > App Store > Log into Sandbox tester account.
Initiate a purchase in your app.
You might be asked to fill in your account details again. You might not expect this, but that’s normal.
Wait for the alert from Apple about the successful purchase.
Test upgrades, downgrades, and crossgrades iOS subscriptions in Sandbox
To test upgrades, downgrades, and crossgrades of iOS subscriptions in the sandbox environment, you can follow the steps below:
Subscribe to the monthly subscription within your app.
Open the Settings app on your device and go to “App Store” under your Sandbox account.
Tap “Manage” and then select “Subscriptions.”
Choose your existing subscription and select a different product from the list of options to change your subscription. If you want to downgrade your subscription, you’ll need to wait 5-10 minutes before proceeding to the next step.
Launch your app again.
Verify that the user is subscribed to the new product and that the changes to the subscription have taken effect.
Test subscription cancellation on iOS
Disable Auto-renew:
On your iOS device, go to Settings > App Store.
Under the Sandbox Account section, tap on your highlighted Sandbox Apple ID and select “Manage.”
Choose the subscription product that you want to cancel from the Subscriptions page.
Tap on the “Cancel Subscription” button.
No active subscriptions could be found.
Reenable subscription renewal:
On the same “Manage Subscriptions” page, tap on the canceled subscription and confirm the payment to reenable the subscription renewal.
Test Restore Purchase on iOS
To test the functionality of restoring a purchase during an active subscription in the iOS sandbox environment, it is important to note that unlike the production sandbox and production environments, there is no receipt file generated on the device until a purchase is made. Therefore, to fully test restoring a purchase in the Sandbox, a button, gesture, or another method needs to be added to the app to revert it to the unsubscribed state.
Testing the restoration of a purchase during an active subscription in the sandbox environment involves the following steps:
Sign up for a monthly subscription.
Reinstall the app and make sure that you don’t have any subscriptions there.
Use a button or gesture that was added to revert the app to the unsubscribed state.
Tap the “Restore Purchases” button.
If this is done before the subscription cycle ends (within 35 minutes), the app should detect an active subscription and change to the subscribed state.
To test the restoration of purchases across devices in the sandbox environment, follow these steps:
Subscribe to a monthly plan on device A.
Install the app on device B before the subscription expires.
Log into the same Sandbox account used on device A.
Launch the app on device B.
Tap the “Restore Purchases” button.
Test billing issues on iOS
After WWDC22, Apple added a capability to simulate billing failures. To learn more about how to test billing issues in detail, read this article or official documentation.
Conclusion
Once you have tested the entire process, you can implement your in-app purchases in your production app. It is important to note that you will need to use different settings and test user accounts in your production app than you used in the sandbox environment.
In summary, testing in-app purchases in the sandbox environment is a crucial step in ensuring that your app is functioning properly before submitting it to the App Store.
Qonversion is an all-in-one solution that provides developers with a cross-platform infrastructure for managing subscriptions and users’ access between iOS and web platforms. With Qonversion, you can ensure that your subscription model works seamlessly across all devices, minimizing the possibility of billing issues. It also provides a comprehensive analytics dashboard with valuable insights into user behavior and subscription performance.
Start Now for Free
Or book a demo with our team to learn more about Qonversion
Start Now for Free
Or book a demo with our team to learn more about Qonversion
Start Now for Free
Or book a demo with our team to learn more about Qonversion
Read more
Read more
![Trash Panda App partners with Qonversion](https://framerusercontent.com/images/fIjbGE1BlBzu0OZK7vCihIvo.webp)
Trash Panda Maximizes App Revenue after Setting the Best Subscription Price with A/B Tests
Jul 8, 2024
Jul 8, 2024
![StyleDNA with Qonversion](https://framerusercontent.com/images/0CYKPTzYfOn6vdokDrwSoFR4c.webp)
How StyleDNA Saved 20% Development Time and Unlocked New Features
Jun 19, 2024
Jun 19, 2024
![WWDC 24 updates](https://framerusercontent.com/images/OFmq7UmE6o7QKdnnbRBNKtgo.png)
WWDC24 Updates for App Developers | What's new in Storekit 2 and App Store Server API?
Jun 17, 2024
Jun 17, 2024
![Parenting by Iben Sandahl uses Qonversion](https://framerusercontent.com/images/qJ2twjlmMxXqQ2MggeZqrVbB580.webp)
How A/B Testing with Qonversion Helped Iben Sandahl’s Parenting App Double Their Sales
Jun 13, 2024
Jun 13, 2024
![Trash Panda App partners with Qonversion](https://framerusercontent.com/images/fIjbGE1BlBzu0OZK7vCihIvo.webp)
Trash Panda Maximizes App Revenue after Setting the Best Subscription Price with A/B Tests
Jul 8, 2024
Jul 8, 2024
![StyleDNA with Qonversion](https://framerusercontent.com/images/0CYKPTzYfOn6vdokDrwSoFR4c.webp)
How StyleDNA Saved 20% Development Time and Unlocked New Features
Jun 19, 2024
Jun 19, 2024
![WWDC 24 updates](https://framerusercontent.com/images/OFmq7UmE6o7QKdnnbRBNKtgo.png)
WWDC24 Updates for App Developers | What's new in Storekit 2 and App Store Server API?
Jun 17, 2024
Jun 17, 2024