#thomasst - Payment Failure

1 messages · Page 1 of 1 (latest)

acoustic tendon
#

HI 👋

sullen robin
#

Hi there

acoustic tendon
#

All the information you want is in the event object itself

#

Well...you do have to do a little digging

#

Wait..there were no payment attempts on this invoice.

#

It was finalized, updated, and voided at the same time

sullen robin
#

If there were no payment methods, why would I get a invoice.payment_failed event in the first place?

#

Besides, we did try to charge, and on the payment intent it says "in_0LdHZC4rOYBvHyzsL2S2Ef9N's payment for an invoice for $20.95 USD failed9/1/22, 1:52:42 PM"

acoustic tendon
#

Nope, no attempts

#

There are no charges associated with that PI

#

and the only modifying API requests are for invoice finalizing, invoice updating, and invoice voiding

sullen robin
#

Why was the invoice.payment_failed webhook fired then?

sullen robin
#

At the time of the charge the customer should have a credit card on file, no?

#

(There is an ACH method on the account but that one was created later via evt_0LdJwZ4rOYBvHyzsrZAMJ3q7)

storm oak
#

looking

#

if this isn't set, we don't know which PM to use.

sullen robin
#

As in, I either need a default payment method, or specify it explicitly?

storm oak
#

yes

#

you can set the default on the Customer, on a specific Subscription or a specific Invoice.