#Adarsh
1 messages · Page 1 of 1 (latest)
hello! Due dates can only be used with collection_method=send_invoice. Can you explain what you mean by I want the due date to cover cases when the auto charge fails?
let's say I create an invoice with collection method as charge_automatically
now, when I make a stripe.pay call
it will finalize the invoice and attempt to auto-charge the customer, let's say due to some reason the payment fails (maybe due to the bank rejecting the payment) and the invoice remains in the open state, to track the payment for this invoice, I need a due date set, so that I can notify customer when the due date is reached
Why would you need to set a due date though? Invoices that charge_automatically will also have auto retries set, and can be configured to send emails to customers when payment fails
Theoretically, you can set metadata and set a due date in the metadata when creating the Invoice i guess, but it would still be on you to run a cron job to manually check which invoices have reached a due date
ok thanks, where I can see the email setting
to notify customers on payment failures?
is this a one-off invoice or an invoice for a subscription?
one-off invoice
hmmm, so revenue recovery i.e. the features listed in this page : https://stripe.com/docs/invoicing/automatic-collection#failed-payment-notifications is part of Invoicing Plus (i.e. They're paid for features) - if that's something you want to consider using
If you don't want to pay for this feature, I think as a workaround, what you can consider is to listen for the invoice.payment_failed webhook event and perform any follow up action that you need to on it