#kristians
1 messages ยท Page 1 of 1 (latest)
Can you share an example?
ok
Not really bad dev principles and it on live ๐ But the issue is they we set up stripe subscriptions with a 7 day free trial. First charge when creating subscription is 0 charge but then if the user while still on free trial phase cancels his/hers subscription they are charged for one month
Then I can see that stripe has reducted that amount but haven't retured charged amount
Thanks in advance sarthak
I need an example ID please. Perhaps sub_xxx
Without an example of the behaviour you're describing we can't really progress
sub_1OAJ76Gl8Ny2D5ZRgDpeRjya
Ok, and what seems to be the issue? The subscription started in a trial, the trial ended. However that doesn't automatically cancel/end the subscription
We'll continue to bill the provided payment details unless explicitly cancelled
That was only done here: https://dashboard.stripe.com/logs/req_8eNVFjaRoZ0dPI
After the payment
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
It's explictly canceled and not even showing up in subscriptions anymore
Yeah, it was cancelled after the payment was taken. Sure, seems expected
If you want to cancel the subscription at the end of the trial then you should send cancel_at_period_end: true when you create your subscription
There was no need for payment as user was still on free trial
No, they weren't. The trial ended on 2023-11-08 21:17:44 so we generated a new invoice: https://dashboard.stripe.com/events/evt_1OAJ8DGl8Ny2D5ZRG2MCfPFM
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
And how long does it take for proportian adjustement to be sent back to users card. (need to write few emails ๐ ) I has to done manually
Payment was automatically attempted as we had a payment method on file for the customer. Nothing is unexpected here
We don't refund proration adjustments automatically. They're applied to the customer balance. If you want to refund that, it's a seperate action you need to take
Any way to prevent it? As that is a bad user experience if we charge them if they leave while still on free trial?
But you didn't charge them while on a free trial. The free trial ended.
You created the subscription here with the trial_end parameter: https://dashboard.stripe.com/logs/req_eNHomc4HnluqWu
When that time hits the trial ends, and we automatically start a new billing cycle and generate an invocie at the price/plan you set on creation. We automatically attempt to pay that invoice if the customer and/or subscription has a saved card (which in this example does)
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Let me check the code them ๐
If you want the subscription to cancel when the free trial ends to prevent any payments then use cancel_at_period_end: true on crearion
But nothing here is unexpected
np