#emmann_48287
1 messages · Page 1 of 1 (latest)
Hello
hii
How is the customer canceling their Subscription in this case?
Do they use the Customer Portal or do you use the API?
yes i have everything set up
customer can update and cancel plan with te portal link
previuously i was able to do so with another snippet from Stripe
they say, it's better to use this one
now, i want to figure out how to do so
is there something that i can add to this snippet to end the subscription at the end of the cycle
instead of immediately
also i have webhooks monitoring those events
Yeah you can set this via your Customer Portal Config
Are you just using the default Config from the Dashboard?
Or do you create custom configs?
i mean standard account in connected account
and built in stripe portal
and checkout
i dont see those option
before yes, but now i don't know where they are
if i can achieve that with code
no problem
either way, i'll be fine
other detail it's a recurrent product
do you have something for me plz?
I'm helping multiple folks at once so you need to be patient.
You are creating these Checkout Sessions on your Connected Accounts?
To do this via the API, you create a Portal Configuration with features.subscription_cancel.mode: at_period_end: https://docs.stripe.com/api/customer_portal/configurations/create#create_portal_configuration-features-subscription_cancel-mode
yes,
okay ...let me a look quickly
i'm using this one: stripe.billingPortal.sessions.create
what will be the difference:stripe.billingPortal.configurations.create
?
Yep so you pass that a configuration: https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-configuration
okay
Right now it sounds like you are just using the default configuration that is set in the Dashboard
You can also try setting it in the Dashboard at: https://dashboard.stripe.com/test/settings/billing/portal
But if I am understanding you correctly this isn't going to work since you are working with Standard Connected Accounts
So it will use the default configurations on those Connected Accounts
But you may want to test this to make sure
yes, i want to make sure it works, i'll my configuration are working great except what i've told you about ending subscription
let me check your last link quickly
Okay so first thing to do then is just toggle it at https://dashboard.stripe.com/test/settings/billing/portal -- you click on Cancellations there and there is an option to cancel at end of billing period
Try that first