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

2

5

Before November 2020, an Android app on Google Play has to manage 'Account Hold' status.

https://developer.android.com/distribute/play-policies

Question is: how to simulate 'Account Hold' status so that I can check that my app manages properly this status ?

It is not mentioned in the doc as far as I can see: https://developer.android.com/google/play/billing/test

Thanks.

Tricho answered 11/9, 2020 at 9:30 Comment(2)
Indeed it is really not clear to me what is expected precisely. In particular, does the app need to change any UI/flow for the "hold" functionality?Molliemollify
Have you received any other answers to this question? The docs don't explain what an app should do to support 'Account Hold'.Anticlastic
M
8

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.

Mears answered 16/10, 2020 at 22:48 Comment(5)
Thanks! How should the app react? It is not clear in the guidelines. Is it enough if I display the usual paywall screen as for users who are not yet subscribed ? Thanks.Tricho
Other question: how to test Account Hold with a subscription that has a Grace Period ? Indeed, as you mention, the account hold has a duration of 5 minutes in test mode ; but I have a 30 days grace period that probably induces at least 5 minutes of Grace Period in test mode... So, I cannot test the behaviour of my app during the 5 minutes of Account Hold. Do you have any feedback about testing Account Hold for an app with Grace Period ? Thanks !Tricho
See my question here: #64462324Tricho
During the On Hold state, I don't think your app should paywall, as the sub is not yet canceled. The 5min Hold (or up to 30 days in real, non-sandbox time) is a built-in grace period for people to get a new card delivered, updated. In our case, we've chosen to do nothing, use Google as the gatekeeper of when our app accounts revert to non-paid state. Yes, testing On Hold is a real hassle.Mears
Detailed test timing : android-developers.googleblog.com/2018/01/…Yseulte
A
0

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

Anarthrous answered 17/9, 2020 at 14:47 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.