问题
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.
回答1:
What we've found today:
- Use Test Card, Always Approves to begin the subscription
- Go to phone settings > Accounts > your name > your Google account > Payments > Manage Subscriptions (or Play Store > Subscriptions)
- Update the Payment Method for that subscription to use Test Card, Always Declines
- After the 30min renewal timer runs out, you'll get a "On Hold" push notification
- 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.
回答2:
Go to the Account > Subscriptions section of the Google Play app, click your test subscription, and change payment method to "Test instrument, always declines"
来源:https://stackoverflow.com/questions/63844352/google-play-billing-how-to-simulate-account-hold-status-in-debug-sandbox-mo