#defekt7x - invoice behavior
1 messages · Page 1 of 1 (latest)
Yes, you can finalize the invoice with an API call before you set that pause behavior https://stripe.com/docs/api/invoices/finalize
When I run that command, the invoice gets changed to "Open" instead of "Paid", is that right?
There is an auto_advance parameter, if you set it to false, the Invoice will go to an Open state https://stripe.com/docs/api/invoices/finalize#finalize_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.
interesting, I do have it set to true
And it is going straight to paid? This might have to do with the subscription settings as well
It's going straight to open while auto_advance is set to true
Oh so you do want it to be paid immediately?
Yeah
Do you have the request ID from when you tried this?
If it isn't possible to do from the finalize call, you can make a separate pay call https://stripe.com/docs/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.
Ok, great. invoice.pay() is what I was needing. Thanks for the help!