#dbugger_best-practices
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1271173245957050549
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
You would need to ask them for their address, yes. This can also be provided in the billing details of their Payment Method when they add one
So, if I don't do anything, they will have to eventually add it themselves during the payment details are added..
That means that I do not really have to do anything, no?
Pretty much
Oh, ok, that's a relief
I got the first trials coming to an end next week, and I was terrified that I had not completed their customer data in time, on signup
๐
Also, by the way... How about reminding users that they trial is about to end. Does Stripe do that themselves? Or do I need to do it myself?
You can set the number of days before the trial ends to send an reminder here: https://dashboard.stripe.com/settings/billing/automatic
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Oh, awesome!
Which one is the hook that I have to listen to, when the subscription ends? customer.subscription.deleted?
There are so many. I see customer.subscription.trial_will_end, but I assume that is meant for me to do something like, sending some sort of manual reminder...?
That's the webhook event you'd use to update your internal systems if you wanted to. Otherwise, you can have Stripe send the Customer an email by toggling this on
or is it maybe customer.subscription.pending_update_expired?
It's not. It's customer.subscription.trial_will_end
What I meant is that, in my database, I have his profile set up as "premium", so there is an event that I have to be on the lookout to know if I have to set it back to "basic"
So I do not know if I should use deleted , pending_update_applied or paused
Under what conditions would you set it back to basic?
If the subscription comes to an end, and it has not been renewed, the user goes back to the free tier
which is the "basic" user
How would it come to an end? You choose when to do that yourself, it doesn't just happen. Your Subscription will default to whatever you set payment_behavior to: https://docs.stripe.com/api/subscriptions/create#create_subscription-payment_behavior
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
One last question: If I click the "Send a reminder email 7 days before a free trial ends" today, and there is a user whose trial will end in 3 days... he will also receive that email?
Or does this setting only affects those users that cross the "7 days deadline" from that moment onwards?
This one
Ok, cool. Thanks a lot.
Sure thing!