#vijju
1 messages ยท Page 1 of 1 (latest)
Hello ๐
When you advanced the clock, how far did you go from the invoice creation time?
To repharse, how long did it take for the invoice to finalize?
i scheduled at jun 15
i advanced the clock to june 16
Gotcha. I think the 72 hours wait is only if you're listening to invoice.created events but don't respond. Otherwise, if you're not listening to the event, then invoice should finalize automatically.
Can you share the example invoice ID?
evt_1NGM3dInWjFiBg71DbBJzMe9 - event id
"in_1NGM3cInWjFiBg71uGg0psMF" - invoiceid
im not listening the invoice.created event at all
so i thought it will in draft state
yeah it finalizes automatically in an hour if you're not listening to the .created event
You can check the timestamp too
Do you need it to stay in draft?
no
but if i want to do it how should i achive it?
You'd need to listen to invoice.created events for that
Once an invoice is created, you would then update it to set auto_advance to false
That should stop auto finalization
https://stripe.com/docs/api/invoices/update#update_invoice-auto_advance
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok
thanks