Start free
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.

Google

  • 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

  1. Purchase → customer appears with pro active and is_sandbox: true.
  2. Cancel in the store's subscription settings → CANCELLATION, still active.
  3. Let it expire → EXPIRATION, no access.
  4. Restore on a second device / after reinstall.
  5. Log in on another device → same access.
  6. 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.