title: Android subscription status
body: <p>Today google announced new feature - "Account holds for declined payments" <a href="https://developer.android.com/google/play/billing/billing_subscriptions.html" rel="nofollow noreferrer">https://developer.android.com/google/play/billing/billing_subscriptions.html</a></p>
  
  <p>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?</p>
  
  <p>I can't find this information in doc. </p>
  
  <p>Google provide next subscription information:</p>
  
  <pre><code>{
    "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
  }
  </code></pre>
  
  <p>According to doc the "Account holds for declined payments" state is: </p>
  
  <pre><code>expiryTimeMillis &lt; current_time &amp;&amp;
  autoRenewing = true    &amp;&amp;
  paymentState = 0
  </code></pre>
  
  <p>But what state of fields will determines the grace period? </p>
  
  <p>I am using this values for determine grace period but now it looks like wrong:</p>
  
  <pre><code>expiryTimeMillis &lt; current_time &amp;&amp; 
  paymentState = 0
  </code></pre>