#shaon
1 messages ยท Page 1 of 1 (latest)
Yes
I'm not sure it's possible
I'm not sure
ok
how can I delay invoice.finzalied
i would like to delay for 5 seconds or sop
or until invoice modification has taken place
in invoice create I am modifying the invoice itself to add a description
are we talking about recurring invoices or one-time?
recurring
So the way to do that would be by starting your subscription with a ten second trial, the first invoice wouldn't be finalized for an hour after that but you can manually make the finalize invoice API call to make that happen sooner
you'd have to listen to invoice.upcoming events and update the invoice before it gets finalized
If you are charging automatically, every invoice except for the first one will always be in a draft state for an hour before finalizing
So invoice.created will work for them
ah ok
that makes a lot of sense
thank you
how can i check whether its the first one?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
it will have subscription.create
how do you recommend testing a subscription.cycle billing reason?
We have test clocks that you can use to simulate time passing. So you could make a subscription and fast forward the clock so that it cycles to make sure that your integration reacts to these webhooks and fields properly. https://stripe.com/docs/billing/testing/test-clocks