#umethi
1 messages ยท Page 1 of 1 (latest)
You should be able to do it via dashboard: https://stripe.com/docs/invoicing/integration/workflow-transitions#finalized
One more question: Is there a way to manually create an invoice that fails finalization in the Dashboard?
You would have to fix the issue with why it's failing to finalize first
Understood, but then there's a button that allows me to Finalize the invoice on the Dashboard itself?
Do you have a screenshot of this button by chance?
I don't unfortunately. I'm not really a dashboard expert, but I do know it's possible
I can check in a few
Thank you, that would be really helpful!
๐
There is no button in the Dashboard to only finalize. If you use the "Charge customer" button then it will finalize and attempt to pay
Also just tested this out in the dashboard, and if you aren't emailing the invoice to the customer, the way to finalize a draft invoice is to click the Review Invoice button in the top right and then "Confirm". That will finalize the invoice
So if finalization fails, the invoice stays in open status. Once we fix the issue, we click the Review Invoice button in the top right and then "Confirm".
That flow I didn't test. I'll let @cyan kayak take it from here though as they have more dashboard experience
Hmmm I'm actually not familiar with that "Confirm" button being present on the Invoice Dashboard page. Where do you see that exactly?
I had to go in the invoice editor and there's a review button in the top right
If you click that, a confirm modal pops up
That still leads to "charge" though. You can't just finalize a charge_automatically invoice that way?
Yeah I tested without charge_automatically so that's why
Got it ๐
So we can Finalize an invoice via the Dashboard right?
So yeah overall this really isn't possible. If you want to test this @small hollow you should use the API to finalize
Only if you are using send_invoice can you finalize and send via the Dashboard without charging
What if we're fine with charging?
We are enabling auto advance and charge automatically
This is just to process the invoices that initially failed finalization
And if that Charge customer is successful, the invoice will move into the finalized state
It will move to a paid status, yes.
Do you have an example of what a invoice.finalization_failed event looks like?
Like the JSON
It will just be an invoice object (https://stripe.com/docs/api/invoices/object) and it will include info in the last_finalization_error hash
Last question, maybe it's not possible but how do I create an invoice that fails finalization in the Dashboard?
Good question. I think the only way to force this in test mode would be if you are using Stripe Tax and the customer location is unrecognized. See: https://stripe.com/docs/tax/customer-locations#handling-errors