#ketan-anjaria_api
1 messages ¡ Page 1 of 1 (latest)
đ 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/1309572344674517004
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, let me help you with this.
I am not sure how is this supposed to work. What do you expect to happen in the end of the trial instead?
We would like the trial just to end with no charge
What's happening is some of our customers have payment methods they entered years ago. Not their default payment method.
and when their trial ends, they are getting charged unexpectedly.
So you want to cancel the Subscription?
I want the trial to end without charging
even if they have a payment method
https://docs.stripe.com/billing/subscriptions/trials#create-free-trials-without-payment - this doc doesn't say what the options are if they have a payment method
I don't really understand.
The Subscription is in status=trialing. Now, the trial ends, and it needs to transition to a different state, which is either active - which requires a payment - or cancelled. Which one are you looking for?
it's automatically going to active if they have a payment method
we want them no matter what to go to cancelled
Then you need to manually set cancel_at on the Subscription to the same timestamp as the end of the trial: https://docs.stripe.com/api/subscriptions/update#update_subscription-cancel_at
Actually, an even easier solution is to set cancel_at_period_end=true when you create the Subscription: https://docs.stripe.com/api/subscriptions/update#update_subscription-cancel_at_period_end
What happens if we set that and the customer chooses to upgrade?
Thank you that is very useful
Can we set cancel_at_period_end=true for existing trials?
You can then set cancel_at_period_end=false
Yes
ok thank you that is helpful