Running realistic store billing journeys with test accounts and accelerated clocks, without moving real money.
Sandbox testing uses platform-controlled test environments to exercise purchase UI, signed transaction data, backend verification, notifications, renewals, cancellation, recovery, and refunds without charging a customer. It differs from mocking a billing client: store infrastructure still produces the identifiers and lifecycle behavior, but time and payment outcomes may be accelerated or simulated. A complete billing release combines fast unit tests with these end-to-end store checks.
Google Play supports license testers associated with the developer account. Test instruments can approve, decline, complete, or cancel purchases, including delayed pending transactions. Products must be configured and the installed app must satisfy Play’s testing requirements. A backend still calls the Play Developer API and handles RTDN. Test renewals happen on compressed schedules, so assertions should use observed store state instead of assuming production-length periods.
Apple provides Sandbox Apple Accounts for App Store purchase testing, StoreKit Testing configurations for local Xcode scenarios, and sandbox App Store Server Notifications. Those tools solve different problems: a local StoreKit configuration is deterministic and convenient, while Apple’s sandbox reaches server APIs and notification delivery. Test data must remain separated from production, and Apple’s sandbox transaction history or accelerated renewal limits can affect repeated runs.
A useful matrix includes first purchase, duplicate delivery, restore on another device, introductory eligibility, successful renewal, billing failure, grace, expiration, plan change, refund, revoked access, and malformed server payloads. Verify idempotency by replaying notifications and confirm the same user identity is used for purchase and entitlement lookup. Record which scenarios were actually exercised; a suite skipped because credentials are missing is not evidence of a live pass. Before launch, run at least one real sandbox journey for every supported store and compare server persistence with the device result.
The store-issued credential produced even during Play license testing.
Apple’s purchase framework and local testing environment.
The backend path a sandbox journey should exercise end to end.
Validate native checkout, server verification, and entitlement updates together.
Start free