#Ricky-Subscription

1 messages · Page 1 of 1 (latest)

vivid arrow
#

Can you share with me the subscription ID?

storm lynx
#

sub_1L5JFvLJFiJSdSFptk8Cho9w

#

i noticed that the subscription was updated from trailing to active after the 7 day trail, then since no payment was attached, it goes in to past_due.. is there anyway to stop the active from happening?

vivid arrow
#

Can you share with me what you want to accomplish with trialing subscription?

storm lynx
#

Okay, so first my user is in a trial.
i subscribe to the updated webhooks to send the user emails

#

i get a webhook called "updated'
this updates teh subscription from trailing to active, even though there is no credit card attached as yet.

#

i dont know why.

#

then after the first invoice is not paid. it moves to past_due.

vivid arrow
#

Yes this is the expected behaviour, the subscription will remain as active and transition to past_due if the the payment attempt failed.

storm lynx
#

i see.

vivid arrow
#

This is to ensure minimum disruption to your customer

storm lynx
#

i wonder how to structure my emails around this...

#

usually when i get a status === 'active' i sent out a email saying welcome to xxx plan... but in this case that would not work, because the user really IS NOT active, since there is no payment method attached...

vivid arrow
#

You can delay the email until the first invoice.paid has arrived?

storm lynx
#

is there any status that shows the trail has ended? i know there is trail will end. but is there one that is after the trail has ended and no payment has made?

vivid arrow
#

You can listen to customer.subscription.updated and check if the status of the previous attributes is trialing

storm lynx
#

right thats what i thought, i would need to do..

#

after "paste_due" when will it go in to cancelled?

#

How long does it take from 'active' to past_due does it take?

vivid arrow
#

Around 1 hour.
When the invoice is finalized, Stripe will wait for 1 hour and then attempt the payment. If the payment fails the subscription status will become past_due.

storm lynx
#

i see, so i can just wait for the past_due to know when the trail has expired?

vivid arrow
#

No, You should listen to customer.subscription.updated and check if the status of the previous attributes is trialing

#

past_due happens if the payment is unsuccessful

storm lynx
#

right yes thats what i mean so check for .update, and check if previous att was trailing, and the current is "past_due" that will indicate to me that the trial has expired and no payment method attached.

after how many days further will it go in to cancelled? or i remember seeing this option in the stripe dashboard.

vivid arrow
storm lynx
#

Great. also, in what other status will past_due webhook trigger? is it only when there isn'a a payment method on file?

vivid arrow
#

Not just missing payment method, it can also happens if the Stripe is unable to pay the invoice with existing payment method (i.e., card decline)

storm lynx
#

right.. okay. i am also getting a webhook called customer.subscription.deleted this seem to happen automatically after trial is over.

vivid arrow
#

Send me the event ID?

storm lynx
#

evt_1L7eRvLJFiJSdSFpRKbZJW4z

#

i wonder if this is triggered with the status: cancelled if its paste_due for some time.

vivid arrow
#

Stripe cancels the subscription based on your setings

storm lynx
#

i see. so actually the deleted webhook actually sets status : cancelled.. thats what confused me, if deleted and cancelled were the same thing