#pl_api

1 messages ¡ Page 1 of 1 (latest)

toxic novaBOT
vague rampartBOT
#

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
toxic novaBOT
#

👋 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.

lyric basin
#

Hello

torpid pier
lyric basin
#

When you finalize the Invoice you need to set auto_advance: true for it to automatically attempt to charge

#

You do need a default payment method set on the Invoice or the Customer though for this to successfully charge

torpid pier
#

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?

lyric basin
#

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

torpid pier
#

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?