#ggmghoul
1 messages · Page 1 of 1 (latest)
Hi there!
hello
Yes for subscription schedule, all invoices are created in draft status and automatically finalized after one hour (to give you some time to edit the invoice if needed).
Note that it's similar for regular subscriptions, the only difference is the very first invoice that is finalized immediately.
If you don't want to wait for one hour for the invoice to be finalized, you can finalize/pay the invoice directly with the API
https://stripe.com/docs/api/invoices/finalize
https://stripe.com/docs/api/invoices/pay
so if i wait for one hour the paiement will be made ?
Yes, or use the links I shared above to immediately finalize the invoice.
okay thank you
one more thing
if i use the url sent in the payment intent's invoice retreived from a webhook in case a failure to pay that invoice it automatically resolves the situation for the schedule and sends a paymentintent succeeded event right ?
if i use the url sent in the payment intent's invoice
You mean thehosted_invoice_url? https://stripe.com/docs/api/invoices/object#invoice_object-hosted_invoice_url
yes
in case the payment fails i want to send an email to the customer to pay that invoice
Yes, that works!