#Derek Lance

1 messages · Page 1 of 1 (latest)

thorn sphinxBOT
mystic plinth
#

You mean using a Product object, figure out whether or not a free trial was used?

left vector
#

given a customer id and a product id, check to see if that customer has ever subscribed to that product id with a free trial

#

could i list all a customer's subscriptions, check each of those subscriptions' list of subscription items to find the product id i am interested in, and then check if that subscription has a trial_start/trial_end that is non-null?

#

i guess my question boils down to:

  • customer subscribes to a product and gets a free trial, but then cancels their subscription
  • 1 month passes
    if i now retrieve that subscription object, will trial_end be null? or will it be some date in the past that the trial expired on
mystic plinth
#

could i list all a customer's subscriptions, check each of those subscriptions' list of subscription items to find the product id i am interested in, and then check if that subscription has a trial_start/trial_end that is non-null?
Yeah, that seems like it would work

left vector
#

cool thanks. i will try that

mystic plinth
#

if i now retrieve that subscription object, will trial_end be null? or will it be some date in the past that the trial expired on
I believe it would be non-null, but let me check

#

Yup, it would show a UNIX timestamp for trial_end and trial_start