Skip to content
LocalASO logo: magnifier app iconLocalASO

ASO glossary

Sandbox Testing for In-App Purchases

Sandbox testing is Apple's environment for testing In-App Purchases and Apple Pay transactions using test accounts without real charges. It uses the App Store's infrastructure and returns transactions as if payments were successfully processed.

Updated

What you can test

ScenarioDetail from Apple
App Store country or regionSame sandbox account across any of the 175 storefronts
Subscription eventsRenewals, state changes, interrupted purchases, winback offers and contingent pricing without waiting a full period
App Store Server NotificationsThat your server receives sandbox notifications
Family SharingSandbox Test Families with up to five test members
Apple PayTest credit and debit cards
Ask to BuyRoute purchases through the flow, then approve or decline

Getting started

  1. Create Sandbox Apple Accounts in App Store Connect.
  2. Sign in with them on devices running a development-signed build, with Developer Mode on.
  3. Make purchases and watch your app and server.

Changes you make to product metadata can take up to one hour to appear in the sandbox.

Alternatives

StoreKit Testing in Xcode is a local environment that needs no connection to App Store servers; Apple suggests it to test before you configure purchases in App Store Connect. TestFlight is for beta distribution to testers, a different job.

What to test first

Cover introductory offers, win-back offers and server notifications before release, because they involve both App Store Connect settings and your code.

Next step

After purchases work, make sure the page that sells them is findable. Start with the App Store keyword research guide.

Questions

Does the sandbox charge real money?
No. It returns transactions as if payments were processed, using test accounts, without incurring charges.
Can I test without a network?
Yes, with StoreKit Testing in Xcode, a local environment that does not need a connection to App Store servers.

Sources

Do this for every country, in minutes

LocalASO checks your rank, volume and difficulty for every keyword in 50+ App Store countries, in each local language. It runs on your Mac. $29 once, no subscription.