#kristians

1 messages ยท Page 1 of 1 (latest)

marsh jewelBOT
tawdry magnet
#

Can you share an example?

quiet knot
#

ok

trim cargo
#

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

quiet knot
#

the error is not in subscription

#

let me explain the process

trim cargo
#

Then I can see that stripe has reducted that amount but haven't retured charged amount

#

Thanks in advance sarthak

tawdry magnet
#

I need an example ID please. Perhaps sub_xxx

#

Without an example of the behaviour you're describing we can't really progress

trim cargo
#

sub_1OAJ76Gl8Ny2D5ZRgDpeRjya

tawdry magnet
#

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

trim cargo
#

It's explictly canceled and not even showing up in subscriptions anymore

tawdry magnet
#

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

trim cargo
#

There was no need for payment as user was still on free trial

tawdry magnet
trim cargo
#

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

tawdry magnet
#

Payment was automatically attempted as we had a payment method on file for the customer. Nothing is unexpected here

tawdry magnet
trim cargo
#

Any way to prevent it? As that is a bad user experience if we charge them if they leave while still on free trial?

tawdry magnet
#

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)

trim cargo
#

Let me check the code them ๐Ÿ˜„

tawdry magnet
#

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

trim cargo
#

ok will modify it accordingly then

#

Really big thanks for the help!

tawdry magnet
#

np