#dammyola
1 messages · Page 1 of 1 (latest)
Hello! That's how subscriptions work by default - are you seeing something different?
Interesting... I'm just getting myself familiar with Stripe's subscription.
What is the point of this then stripe.billingPortal.sessions.create
That's for giving access to the customer portal where a customer could look at their recent invoices/manage their subscriptions https://stripe.com/docs/customer-management
Wow, am I doing the wrong thing?
Here's what I want to achieve.
I want to have a button users can click to upgrade their subscription.
Or renew their subscription.
Have you tried the customer portal out yet? It should support everything you need, it's just that most of the time you don't need to actualyl renew your subscriptin unless you've scheduled it to be cancelled at the end of the current period
Most subscriptoins will just automatically renew without any action required
go ahead 👍
I realized we can have/create more than one billing portal stripe.billingPortal.sessions.create. What is the use case of having multiple billing portal?
Forgive me
I meant stripe.billingPortal.configurations.create
What is the use case of having multiple billing portal configurations?
Multiple configurations is nice if you want to offer different features to different customer/users
As an example, if you want to give some users the ability to cancel their subscriptions through the portal but didn't want everyone to have that option you'd create two different configurations
I supposed when creating a billing portal session stripe.billingPortal.sessions.create, there's an option to select which of the billing portal configurations to choose from.
yup
Thank you.
Going back to this.
If most subscriptoins will just automatically renew without any action required, how do I know as a developer in order to give the customer access to the product?
Which of the events should I listen to?
You'd listen for invoice.paid and/or customer.subscription.updated to know when the customer has paid for each renewal
Thank you for your answers 
Does stripe send emails to customers about the subscription/billing/invoice in test mode?
No, we don't send emails in test mode
But you do live mode right?
correct
Thank you for your time.