Xee Docs
Test & release

Test Android purchases

View as Markdown

Buy each product with a Google Play license tester before you release, and check that the purchase reaches Xee. License testers pay nothing, and their subscriptions renew in minutes.

1. Prepare

  1. Finish Set up Google Play.
  2. In Play Console, under Settings, License testing, add your Google account as a tester, and set the response to RESPOND_NORMALLY.
  3. Upload a signed build to the Internal testing track, with the same package name. Google offers products only to a package it knows.
  4. Open the track's opt-in link with the tester's account.

2. Install and buy

Use a real device, or an emulator image with the Play Store, signed in as the tester. Install from the testing track, or with a debug build signed with the same key.

Open your paywall and buy. Google's sheet says it is a test.

3. The checks

#Do thisWhat should happen
1Send a test notification from Play ConsoleLast notification changes in App settings, Android
2Open the paywallYour Google price shows, and the title comes from Xee
3Buy a subscriptionSuccess with verified true, and premium on at once
4Open the profile in XeeThe subscription shows with store play_store, marked sandbox
5Wait three days, or check the order in Play ConsoleThe purchase is acknowledged and not refunded
6Check the revenue in Xee's analyticsThe price you paid shows once, not twice
7Wait for a renewal (minutes for a tester)A new order appears, and access continues
8Upgrade to another product with XeeReplacementAccess continues on one chain, not two
9Cancel in the Play StorewillRenew turns off, and access lasts until the end date
10Refund and revoke the order in Play ConsoleAccess goes, and a refund shows in Xee
11Buy a one-time product, if you sell onepremium on, and isLifetime true
12Reinstall, then press Restorepremium comes back on the same profile when signed in
13Buy with a test card that declines, or the slow cardPending, with no access until it is paid

If something is wrong

See Android troubleshooting. With Claude connected, get_doc reads this page and it can check the setup with you.