#emak_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/1266019521446154311
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
Can you give me some more details here of exactly what is happening and your desired outcome?
Also if you can share a specific example where double billing occurred then I can see your flow and advise from there.
Hey there, so we noticed that some customers got invoiced twice. And we narrowed it down to figuring out that it is those accounts that went all the way to their trial expiring and then adding their payment information. Any customer who has converted/added payment details before trial end isn't having this problem.
The desired outcome is that the trial ends and when they add payment details it charges them.
Gotcha then yep you likely want to utilize trial_settings.end_behavior: https://docs.stripe.com/api/subscriptions/create#create_subscription-trial_settings-end_behavior
In my case, is it better to use pause or cancel?
Depends on what you want
I know you can't bring canceled subscriptions back
Right
So really up to you
Depends a bit on your model and what you are looking for.
May be better to use Pause if you want to keep all your data for the customer related to one Subscription
Hmm i'll try that, in code I would have to detect if it is paused or not so I can resume right?
It is a different API call from what I understand
Awesome, I'll go try that. May I ask you another question about invoicing behaviour?
So yeah mostly what you do is you collect the PaymentMethod and pay for the desired Invoice and then unpause
Yep you can ask any questions you have in this thread
Thanks!
So I noticed that when I create an subscription, I see a invoice of $0 paid on every subscription that I create
Anyway to avoid that, since it is showing up in my customer's invoice list (that we pull from Stripe)
No, if you are creating trials then the initial Invoice will always be a $0 Invoice for the trial period. No way to prevent that. If you don't want that in a UI that you are showing your customer then you'll need to exclude it on your end.
Ahh okay, makes sense. I think then that is all for now. Love the support from ya'll!