#dingkai031

1 messages · Page 1 of 1 (latest)

languid glenBOT
wraith pollen
steep mulch
#

ah, thank you will try that

steep mulch
#

hello, I was listen to invoice.payment_failed on webhook and got the payment_intent id in the event data.

After that I use paymentIntents->retrive with the payment_intent ID. But the last_payment_error doesn't show anything

wraith pollen
#

Can you share with me the event ID?

steep mulch
#

evt_1MAA63BBuNcFsmgMaZf4CIPB

steep mulch
#

hello, this is my event ID

wraith pollen
#

Thanks for the waiting. I was with another user, let me take a look.

#

OK, since there's no default_payment_method in either the customer's invoice_settings or in the subscription itself, there's no payment attempts and thus no payment errors.

steep mulch
#

sorry, isn't a charge_automatically is attempting a payment?

wraith pollen
#

But there's no default_payment_method attached to attempt a payment

steep mulch
#

how to add it? because this is a second payment attempt. the previous is using a stripe elements... I thought it's added automatically

#

and in test mode, I'm using a test clock.. it ran without a problem..

steep mulch
#

and it failed on the next invoive

wraith pollen
steep mulch
#

ah okey thanks, is there a way to set it in ongoing subscription?

wraith pollen
steep mulch
#

I have update it, but in the dashboard it still requires_payment_method is that normal?

wraith pollen
#

The PaymentIntent ID?

steep mulch
wraith pollen
#

The default_payment_method was attached on 2022-12-02 04:07:36 UTC, but this payment_intent was created 2022-11-30 09:32:18 UTC, which is before the default_payment_method was attached.

#

The default_payment_method will be used in the next payment retry, as well as the upcoming invoice. If you are using test clocks, you can advance the test clock and see how it works.

steep mulch
#

okay understand, thank you