← Blog

In-app purchase testing checklist for iOS and Android

By Edward Harker

To test in-app purchases, install the release candidate through TestFlight on iOS and a Google Play test track on Android. Use sandbox purchases on iOS and a licence tester with a test payment method on Android. For each product you sell, check what the store reports and then try to use what you bought. Repeat after cancelling, after a payment is delayed and after reinstalling.

How do you set up a test purchase on each platform?

Start with a test user who has never bought the product. Record the app build, the product ID and the account state before you open the paywall. If your app checks purchases on a server, confirm that the test build points to the environment where you can inspect that result.

  • iOS. Use StoreKit Testing in Xcode for quick checks during development. Run your TestFlight candidate against the App Store sandbox to check the products from App Store Connect. If your app verifies transactions on a server, exercise that path in the sandbox too. Use a dedicated test device if you need to sign out of Media & Purchases to access sandbox controls. Apple’s testing environments, Apple’s sandbox setup.
  • Android. Add the tester to the Play test track and register their purchasing Google account for licence testing in Play Console. Install the build using that Google account. Expand the purchase sheet to confirm who's buying, look for Google Play's test purchase notice and select a test payment method. If the notice or test method is missing, check the licence tester setup before you continue. Google’s Play Billing testing guide.

Which purchase cases should you run before release?

Write down the exact thing the tester should be able to use. In a language-learning app that sells a permanent offline lesson pack, open a lesson and play its audio. A success message or a dismissed paywall alone leaves that check unfinished.

CaseWhat to doWhat should happen
Buy successfullyCheck the product and price on the paywall and store sheet, then complete the purchase.The paid feature works for the eligible account. Reopen the app and use the feature again.
Cancel or declineClose the store sheet. Run a separate test with a declined payment.Access stays locked and the user can try again.
Complete a pending paymentStart a delayed purchase for a supported product. Close the app while it is pending, then reopen it once the store reports a successful purchase.Access stays locked while the purchase is pending. The app picks up the completed purchase and grants access once.
Decline a pending paymentRepeat the delayed case and let the payment fail or reject the approval request.Access stays locked and the purchase screen remains usable.
Recover from a disconnectIf your app verifies purchases on a server, interrupt that connection after the store confirms payment but before the app grants access. Reconnect and reopen the app.The app verifies the original purchase and grants access without asking the tester to pay again.
Recover an existing purchaseReinstall and open the app with the same test store account and, where applicable, the same app account. Use the restore action if your app provides one.An eligible permanent purchase or active subscription gives access again. The restore flow does not issue another purchase.

On iOS, use Ask to Buy in Xcode to exercise approval and decline. Apple also documents sandbox approval controls for a Sandbox Apple Account on iOS 27.2 or later. A declined Ask to Buy request sends no transaction to the app, so check that the app stays usable without waiting for a decline message. Ask to Buy in Xcode, Ask to Buy in the sandbox.

On Android, use the slow test cards to run both approval and decline for a supported product. Check the Play result before reopening the app so you can tell whether the payment is still pending or the app has missed the update. Google’s pending purchase tests.

What changes for subscriptions and consumables?

  • Subscriptions. Let a test subscription renew, then check that you can still use the paid feature. In a separate run, turn off auto-renewal and check access before and after the store reports expiry. Use the sandbox renewal controls or Play Billing Lab to exercise the transitions your app handles, such as a failed renewal and payment recovery. Write down the store state and the time you checked access. Apple’s sandbox settings, Google’s subscription tests.
  • Consumables. Buy and use one pack of credits, then buy it again. Check the balance after each purchase and again after reopening the app. If the app recovers an interrupted purchase, check that the balance rises once for that purchase.
  • Permanent unlocks. Run the restore test before resetting the store account for another fresh purchase. Use a fresh tester or clear purchase history in Apple’s sandbox. On Google Play, you can refund and revoke the test purchase to buy the same product again. Apple’s purchase history controls, Google’s one-time product tests.

What should you record when the store says paid but the app stays locked?

Record when the store reported success and when you first tried the paid feature. For example, “Play completed the test purchase at 14:02 UTC. The lesson pack still showed a lock after reopening build 218 at 14:04 UTC.” That gives engineering two events to look for in the test environment.

Device, OS, app version and build
Install channel and billing test environment
Product ID and product type
Starting access and test account alias
Purchase steps and store status with time and time zone
Expected access and what happened when you used the feature
Result after reopening the app or using Restore Purchases
Sanitised evidence or a reference to the restricted test record

Use test data in screenshots and recordings. Keep raw receipts, purchase tokens and tester email addresses out of shared attachments. If the store sheet closed before you could read the message, include the time and the last visible screen in your report. How to write a reproducible bug report.

When a purchase case fails, turn the run into a ticket with the bug report template generator.

Frequently asked questions

Do TestFlight in-app purchases cost money?

TestFlight uses the App Store sandbox for in-app purchases, so these transactions incur no charge. Use a Sandbox Apple Account when you need controls such as clearing purchase history or changing the renewal rate.

Does a Google Play internal test track make purchases free?

Internal track access lets you install the test build. Set up the purchasing Google account as a licence tester separately, then look for Google Play's test purchase notice and choose a test payment method. Purchases on a test track can incur real charges for other accounts.

Which in-app purchases should survive a reinstall?

Check that a permanent unlock or an active subscription returns to the eligible account. For consumables such as credits, check that restoring access never issues the same purchase again. If your app promises to keep an unused balance across installs, check that balance too.