Today google announced new feature - "Account holds for declined payments" https://developer.android.com/google/play/billing/billing_subscriptions.html
To use this feature developers need to implement support of it. In this case I have a question how to determine is it the grace period (3 or 7 days while google trys to charge money) or is it "Account holds for declined payments" state?
I can't find this information in doc.
Google provide next subscription information:
{
"kind": "androidpublisher#subscriptionPurchase",
"startTimeMillis": long,
"expiryTimeMillis": long,
"autoRenewing": boolean,
"priceCurrencyCode": string,
"priceAmountMicros": long,
"countryCode": string,
"developerPayload": string,
"paymentState": integer,
"cancelReason": integer,
"userCancellationTimeMillis": long,
"orderId": string
}
According to doc the "Account holds for declined payments" state is:
expiryTimeMillis < current_time &&
autoRenewing = true &&
paymentState = 0
But what state of fields will determines the grace period?
I am using this values for determine grace period but now it looks like wrong:
expiryTimeMillis < current_time &&
paymentState = 0