#pl_api
1 messages ¡ Page 1 of 1 (latest)
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.
- pl_api, 2 days ago, 28 messages
đ 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/1273637832216285305
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
When you finalize the Invoice you need to set auto_advance: true for it to automatically attempt to charge
Alternatively, you can finalize by simply calling the /pay endpoint which will both finalize and attempt a charge immediately: https://docs.stripe.com/api/invoices/pay
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You do need a default payment method set on the Invoice or the Customer though for this to successfully charge
It did not become Paid when set here. (req_rVtjnoYdqoaaYE)
await stripe.invoices.finalizeInvoice(invoice.id, {
auto_advance: true,
});
Do I need to finalise when using /pay, or is it an alternative to finalize?
If you finalize with auto_advance: true it won't charge immediately -- it will charge within the next hour
But yes if you want an immediate attempt then you should use /pay
Do I need to finalise when using /pay, or is it an alternative to finalize?
Thank you. Calling pay on a draft invoice instead of finalize could trigger an immediate payment.
it will charge within the next hour
If it is within an hour, then finalize is sufficient.
Can the status of automatically proceed to collection be checked by some parameter of the invoice object?