#emak_emac-subscription-unpause-payinvoice
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/1266448389889982647
๐ 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.
Hey there, this is continuation on a conversation already started in #dev-help message ; I'd like to ask more questions about the option provided at the end. Thanks
Hi ๐
What about the last step described is confusing here?
Hey there. The part that I was unsure about is how this might be more benificial then making an API call to pay the invoice directly? I generate a invoice already via the resume subscription flow which I don't think supports passing in auto_advance
My colleague was suggesting you update the generated Invoice and set auto_advance=True
But you could also use the API to pay the invoice directly
I would still need to make an another API call to perform the auto_advance update? So I was why it may be beneficial over paying directly via the API call directly.
They are two different approaches that could accomplish your goal.
Do you have a valid payment method at the time you are unpausing the subscription?
Yep
We are trying to unpause and activate their subscription at the sametime to get the customer active when they put in their payment information and collect.
What is the collection method?
I think auto, but how can I check that?
It's on the Subscription object https://docs.stripe.com/api/subscriptions/update#update_subscription-collection_method
One moment I'll check
Are you setting the new payment method as the default for the Subscription?
But we describe in our doc here: https://docs.stripe.com/billing/subscriptions/pause-payment#pausing-subscription-schedules. that you need to manually update any invoices in draft status if you want to collect payment for them.
charge_automatically is on the subscription
Okay and are you wanting to collect payment on an existing Invoice that is in draft?
When I resume the subscription, the invoice is in the "open" state so I was looking for a way to collect that payment to resume the subscription.
In that case it might make the most sense to just use the Pay API
Gotcha, so I hear that my flow is sufficient for getting the outcome we want.
Just wanted to make sure I'am not doing anything too strange and there wasn't a more clever way to use the API
Appreciate your help ๐
That's understandable. We offer a number of ways to do things with Billing because so many people have slightly different use-cases that we need to support. But it can make finding the right approach for you difficult
Yeh but glad to have this medium to ask questions to you folks. Appreciate it
Sure thing! It's why we're here ๐