Blog Setup & tools

Sandbox vs Production Purchases: Keeping Test Sales Out of Your Numbers

What sandbox purchases are, why they appear when you test in-app purchases, how to keep them separate from real revenue, and how to test safely.

If you sell in-app purchases or subscriptions, you test them. Those test purchases happen in Apple's sandbox environment. They look real, they trigger notifications, and they can confuse your numbers if you're not careful.

What sandbox is

Sandbox is Apple's testing environment for in-app purchases. When you buy something in a development build or a TestFlight build, you're using sandbox. No real money moves. Apple even speeds up subscription renewals in sandbox so you can test a whole subscription lifecycle quickly.

Where sandbox purchases show up

  • Not in your sales reports. Apple's sales and finance reports only include real purchases. Good news: your official revenue is never polluted by tests.
  • In server notifications, if you set a sandbox URL. App Store Server Notifications have a separate Sandbox Server URL. If you point it at the same place as production, test purchases arrive mixed in with real ones unless your server checks the environment field.

So the confusion usually comes from real-time tools, not from Apple's reports.

Keeping them separate

  • Use the environment field. Every notification says whether it's Sandbox or Production. Filter on it.
  • Use separate URLs if you can. Point sandbox to a different endpoint or turn it off when you aren't testing.
  • Label them clearly. If you do show sandbox events, mark them as test.

How AppScope handles it

In AppScope, you can add your Live link as the Sandbox URL too, which is handy for testing your setup. Sandbox purchases are always labeled with a SANDBOX tag, and you decide whether they appear at all. In Live settings there's a Show Sandbox purchases switch for the Live list and Dashboard, and a separate switch for whether sandbox purchases send you alerts. Your real numbers stay clean.

Testing tips

  1. Create sandbox tester accounts in App Store Connect under Users and Access. Use them only for testing.
  2. Test the full lifecycle. Purchase, renew, cancel, expire and restore.
  3. Test refunds. Make sure your app removes access correctly.
  4. Test on TestFlight before release. It's the closest thing to production.
  5. Test restore purchases. Broken restores are a top cause of angry reviews and refunds. See App Store refunds explained.

Why it matters

Mixing test and real purchases can lead to bad decisions. You might think a price change worked when it was just you testing. Or you might panic over refunds that were actually your own sandbox cancellations. Keeping environments separate means you can trust your numbers.

The bottom line

Sandbox purchases are test purchases. They never appear in Apple's sales reports, but they can show up in real-time notifications. Filter by environment, use separate URLs when you can, and label anything you show. With AppScope, sandbox events are always tagged and you choose whether to see them.

Keep reading