#whisky_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/1298937591155916870
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- whisky_webhooks, 1 day ago, 10 messages
- whisky_unexpected, 1 day ago, 22 messages
๐ checking...
Could you please share more details why you are calling the resume API on that Subscription
I'm not sure I understand the scenario here, could you please provide a step by steps to reproduce the issue you are facing ?
We create subscriptions with trial phases in the beginning and when the trial phase ends, the customer has to attach a payment method if he wants to continue the subscription. Once he attaches the payment method, I receive the payment_method.attached webhook and check if the current subscription status is paused, then I call the resume Endpoint
Thanks for the additional details. In that case set missing_payment_method=create_invoice
when you create thte Subscription
and once you collect/have the PaymentMethod
pay the invoice
and then the Subscription will resume
Let me try it
Ah but that I dont want to do. So I want the subscription to pause because we will market that you can do a test phase with no payment methods. If you dont like the software then you can simply do nothing and if you want to continue, we ask you to attach a payment method
You can achieve the same behavior using the Invoice. If the customer doesn't want to continue you can void it.
True, but then I have to change all the other logic too. Isnt there a way how to do it with missing_payment_method=pause and just work on the way once a payment method is attached?
This seems to be a limitation when using Sepa PaymentMethod. It works with other PaymentMethod (e.g. cards)
Yep
One last thing, can you make another test please and try unpausing the Subscription as following?
https://docs.stripe.com/billing/subscriptions/pause-payment#unpausing
Sure, give me a sec
You cannot set pause_collection while a subscription is paused. Resume the subscription first before setting pause_collection.
Seems like we have to use the resume endpoint
What if we update the subscription when receiving that a payment method is attached? Is it helping to update the missing_payment_method parameter to create_invoice even though the trial ended and then asking to resume?
Hi! I'm taking over from my colleague. Please, give me a moment to catch up.
Sure. Hey Vanya! How are you doing? ๐
I'm good, thanks!
I hope it's okay that I've been flooding the Discord here for the last few days. We are currently testing our integration and so many bugs have popped up. We hope to fix them all this week ๐
No worries, that's why we're here for you.
I just wanted to step back and clarify that pausing collection doesn't actually pause the Subscription itself. The customer is just not charged for it during this period.
I would suggest asking the customer to add a PaymentMethod before the trial ends.
Why do you reset the billing cycle anchor here? req_V2lEP4lCnSXMFU
So that the billing cycle anchor starts once they attach the payment method and the subscriptions transitions from a trial phase with status pause to a "paid" subscription
And otherwise to cancel the subscription?
Yes. Cancelling and re-creating is usually easier to manage than pausing payment collection.
Alright. If that's the only alternative to achieve our goal, then we will set missing_payment_method to cancel
We'll try to setup this flow today and see if that works! Thanks again! ๐
Alternatively, you can try resuming the Subscription just before setting the SEPA PaymentMethod as default.