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

旧街凉风 提交于 2020-12-03 17:12:10

问题


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:

  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.




回答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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!