#Ricky-Subscription
1 messages · Page 1 of 1 (latest)
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?
Can you share with me what you want to accomplish with trialing subscription?
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.
Yes this is the expected behaviour, the subscription will remain as active and transition to past_due if the the payment attempt failed.
i see.
This is to ensure minimum disruption to your customer
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...
You can delay the email until the first invoice.paid has arrived?
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?
You can listen to customer.subscription.updated and check if the status of the previous attributes is trialing
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?
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.
i see, so i can just wait for the past_due to know when the trail has expired?
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
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.
Yes it depends on your settings https://stripe.com/docs/billing/subscriptions/overview#settings
Great. also, in what other status will past_due webhook trigger? is it only when there isn'a a payment method on file?
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)
right.. okay. i am also getting a webhook called customer.subscription.deleted this seem to happen automatically after trial is over.
Send me the event ID?
evt_1L7eRvLJFiJSdSFpRKbZJW4z
i wonder if this is triggered with the status: cancelled if its paste_due for some time.
i see. so actually the deleted webhook actually sets status : cancelled.. thats what confused me, if deleted and cancelled were the same thing