Docs › Guides
Testing purchases
Apple
- Sandbox: App Store Connect → Users and Access → Sandbox → add a tester. On the device: Settings → App Store → Sandbox Account. Subscriptions renew quickly (a month ≈ 5 minutes) and stop after 12 renewals.
- StoreKit configuration file in Xcode tests the UI without servers; those purchases can't be checked by Apple, so they don't reach Appwind Pay unless you enable trust device purchases for local testing in Project settings (never in production).
- TestFlight uses sandbox.
- Add license testers in Play Console (Settings → License testing) and install from an internal testing track. Test subscriptions renew every few minutes.
- Use the test cards (always approves, always declines, slow card) to see billing issues and pending purchases.
What to check
- Purchase → customer appears with
proactive andis_sandbox: true. - Cancel in the store's subscription settings →
CANCELLATION, still active. - Let it expire →
EXPIRATION, no access. - Restore on a second device / after reinstall.
- Log in on another device → same access.
- Events & webhooks → Send test event reaches your server.
Sandbox data is kept out of revenue and charts.
Known store issues
- iOS 18.3.1–18.5 could report a successful purchase as cancelled; the purchase arrives a few seconds later through the SDK's update stream — listen to
customerInfoStream. - New Google service accounts can take up to 24 hours before Google accepts them.
- The iOS simulator can fail to load products on some iOS versions; test on a device.