candy_check icon indicating copy to clipboard operation
candy_check copied to clipboard

Trial period check in Google Play doesn't work

Open catacs opened this issue 6 years ago • 2 comments

When I try to call trial? method from CandyCheck::PlayStore::Subscription class i get false when a subscription is trial. Checking the google play documentation, the added a new payment_state with value 2 which is trial.

https://developers.google.com/android-publisher/api-ref/purchases/subscriptions

paymentState | integer | The payment state of the subscription. Possible values are:

  1. Payment pending
  2. Payment received
  3. Free trial

catacs avatar Jan 15 '19 14:01 catacs

This is a good point, we should allow also the value 2

jnbt avatar May 11 '20 16:05 jnbt

@christophweegen Can you please have a look here. I think we need to whitelist the value 2 on CandyCheck::PlayStore::Subscription#trail?.

jnbt avatar May 31 '21 12:05 jnbt