#andrea-skuola - subscription

1 messages · Page 1 of 1 (latest)

native bronze
#

Hi there!

#

Can you share the subscription ID (sub_xxx)?

south hearth
#

sub_1LKehGK6jaF9EpCmydFO84Kp

#

now is in past due, I only put forward the test clock

#

then if i retry charge it will succeed

native bronze
#

It looks like the subscription and the customer don't have a default payment method set, so it's expected that the payment fails.

south hearth
#

the value needs to be on_subscription?

native bronze
#

Yes, this way the payment method is saved on the subscription, and then will be used for all future invoices.

south hearth
#

I have already set the latter

#

but i have this problem i mentioned

native bronze
#

I have already set the latter
In the subscription you shared, the customer does have a payment method attached, but it's not set as a default, so it won't work.

#

To be a default payment method, it needs to be set in invoice_settings.default_payment_method (see link I shared previously)

south hearth
#

idk, maybe it fails to set it for some reason but i wrote the code

native bronze
#

One quick way to check this: if you look at the customer in the dashboard, do you see a "default" label on the Payment Method? Something like this:

south hearth
#

nope

#

I will try to use the first method that you pointed out to me

#

is the field where I placed save_default_payment_method right?

#

in the payment_settings