#daredevil
1 messages · Page 1 of 1 (latest)
Hi 👋
I"m not 100% clear on what you mean here
What data do you have on your customers at the time they are interfacing with your integration?
Hi. Ok so basically I have a 7 day trial. Sometimes people will start the trial and then cancel. However, if they then go back to the checkout page they can start a new plan and it will give them another trial. That's what I'm trying to solve.
I'm essentially looking for a way to know that they were already on a trial and then redirect them to the portal instead of checkout so they don't get another free trial (I'm not sure if this is the optimal way of doing it just what came to mind)
Is there some kind of login or something so that you could know who it was that was trying to access your checkout page?
Yes I'm using the firebase extension so I have a UID and can access the stripe customer id.
Okay I'm not familiar specifically with Firebase but if you have a Customer ID you can list Subscriptons for that Customer and examine their statuses before you allow them to create a new one: https://stripe.com/docs/api/subscriptions/list
Got it that should work. If I send people to the customer portal even without a subscription currently active will they be able to renew their canceled subscription or choose another plan?
This would depend on the configuration you set for the customer portal