#dbugger_best-practices

1 messages ยท Page 1 of 1 (latest)

void terraceBOT
#

๐Ÿ‘‹ 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.

mild sparrow
#

Pic for reference

distant matrix
#

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

mild sparrow
#

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?

distant matrix
#

Pretty much

mild sparrow
#

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?

distant matrix
mild sparrow
#

Oh, awesome!

#

Which one is the hook that I have to listen to, when the subscription ends? customer.subscription.deleted?

void terraceBOT
mild sparrow
#

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...?

distant matrix
#

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

mild sparrow
#

or is it maybe customer.subscription.pending_update_expired?

distant matrix
#

It's not. It's customer.subscription.trial_will_end

mild sparrow
#

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

distant matrix
#

Under what conditions would you set it back to basic?

mild sparrow
#

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

distant matrix
mild sparrow
#

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?

mild sparrow
#

Ok, cool. Thanks a lot.

distant matrix
#

Sure thing!