#Adarsh

1 messages · Page 1 of 1 (latest)

native fieldBOT
prime grail
#

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?

reef mountain
#

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

prime grail
#

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

reef mountain
#

ok thanks, where I can see the email setting
to notify customers on payment failures?

prime grail
#

is this a one-off invoice or an invoice for a subscription?

reef mountain
#

one-off invoice

prime grail
#

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