#tounka
1 messages · Page 1 of 1 (latest)
Nothing automatic, but you can certainly build this yourself.
What do you mean by "once their subscription expires" exactly?
Yep, so in those cases you can use the events to take any action you like to restrict access
Note you could also configure automatic payment retries & cancelation after those fail, and just use the cancelation events if you like
But that's up to you
where can i do automatic payment retries? and in what scenarios does it make sense to do that
See here about payment retries: https://stripe.com/docs/billing/revenue-recovery
It includes a link to dashboard settings to manage failed payments
For example, maybe a card is declined with insufficient funds. Do you want to cancel them right away, or wait and let the payment try again in a couple of days?
when i activate live mode, will all my setting from test mode be 1:1 or can i use different settings, and urls?
Most subscription settigns are global, applying to both live and test mode
to test behaviour with different settings I recommend creating a separate test mode only account
so have two stripe sccounts?
what about settings for things like links to the customer portal and callbacks, webhooks etc
Hi there 👋 taking over, as my colleague needs to step away
I'm not sure what you mean by your question. You can test all those things a myriad of different ways. Settings in the Dashboard usually apply globally, but there are specific API parameters or configurations that you use to dictate the behavior on a per-request basis.
for example, in my test env, i would want my STRIPE_SUCCESS_URL url to be checkout.test.billing.com but in production i want it to be checkout.billing.com is it possible to do this?
Yeah, that's possible. You would just need a way to know whether it was a test or live event at the time of creation. You set the return url when you create the Checkout Session
what do you mean by "You would just need a way to know whether it was a test or live event at the time of creation"
Well, if you set return_url on the Checkout Session when it is created, then you could choose to set it to either checkout.test.billing.com or checkout.billing.com depending on if you used your test mode API key or your live mode API key
right, that was a bad example. in the stripe console for my customer portal, i'm using checkout.development.domain.com and for prod i plan to use ``checkout.domain.com`
I'm not sure what the point here is. The workflow is the same
the difference is my development site will be interacting with my all things dev
not sure what you're getting at
"the difference is my development site will be interacting with my all things dev"
What does this mean?
my app is deployed in two environments. if i'm interacting with my site that's in our dev env, idk if i'd want the portal to be linked to the same portal my real users use
dev site -> click on customer portal -> view portal with the dev url
prod site -> click on customer portal -> view portal with the prod url
I'm not sure what you mean by "linked" since one request goes to live and one goes to test based on which API key you use, but if it's less complicated, you should just create 2 separate Stripe accounts