#jscripts_invoice-advancement

1 messages ¡ Page 1 of 1 (latest)

cosmic vaporBOT
#

👋 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/1238591243915886613

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

royal cape
#

Hi, are you asking if disabling retries per invoice is possible? Although you've enabled it on the account, you want to be able to control which invoices are retriable?

shadow sail
#

yes exactly. we have some invoices that we want retried, and some that we want not retried

#

so i was initially looking for a way to pass a retry: false param when creating the invoice:

      customer: customerId,
      collection_method: "charge_automatically",
      description: description,
    });```
cosmic vaporBOT
royal cape
shadow sail
#

i think this makes sense. so if i do create invoice with auto advance false, and then create invoice items, then finalize, then stripe.invoices.pay, that will work in that flow right? since i am explicitly calling stripe.invoices.pay?

royal cape
#

Yes, I recommend that you test in test mode to ensure that it exactly the behavior you want and see any other side effects you might need to consider.

shadow sail
#

thank you this seems like the right path. and yes will do right now, because i have a few variations of that flow