#asommer12-Invoice

1 messages · Page 1 of 1 (latest)

placid laurel
#

Are we talking about Invoice or Invoice in a Subscription?

#

For Invoice in Subscription, I believe you won't be able to create the Subscription in the first place. It will error like This customer has no attached payment source or default payment method

#

For standalone Invoice, when it is finalized and charged, it will also error on a message like Cannot charge a customer that has no active card

#

So, unfortunately it's not flexible that you can use send_invoice as a fallback for charge_automatically. They are 2 different mode and need to be specified on the time creating the Invoice

#

But you can sort of implement such a behavior by listening to invoice.payment_failed webhook event, and try to send email to your customer

soft bane
#

Hi @chrome trench This is Jack. I'll take over this thread and continue helping you 🙂

chrome trench
#

sorry, i had stepped away for a moment

#

let me catch up

#

okay perfect

#

that's what I thought