Google Play Billing : how to simulate 'Account Hold' status (in debug/sandbox mode)

Viewed 1479
2 Answers

What we've found today:

  1. Use Test Card, Always Approves to begin the subscription
  2. Go to phone settings > Accounts > your name > your Google account > Payments > Manage Subscriptions (or Play Store > Subscriptions)
  3. Update the Payment Method for that subscription to use Test Card, Always Declines
  4. After the 30min renewal timer runs out, you'll get a "On Hold" push notification
  5. Look at your app, see how it's doing

This On Hold state only lasts for about 5mins before reverting to Canceled. So if you want to test how your app reacts to users fixing their card problem, make sure you Update your payment method to Test Card, Always Approves within that time window or you'll need to start over.

Go to the Account > Subscriptions section of the Google Play app, click your test subscription, and change payment method to "Test instrument, always declines"

Related