#ronald_api

1 messages ¡ Page 1 of 1 (latest)

last fogBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1387808048319565896

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

latent hawk
#

I'm using the Subscription Schedule for a phased subscription. When I charge for the first phase, it throws an invoice.payment_failed event.

#

hello

fair spade
#

Hi there -- what exactly are you trying to do? What do you expect this to do instead?

#

Can you share the schedule ID here?

latent hawk
#

sub_sched_1ReGtjICcfgou5MaUCPWc6jF

fair spade
#

alright thanks, got it

#

so the issue here is in not specifying the payment to be used for the subscription invoice payments

#

You colleted a payment method for cus_SZPdqhpNndJYMz, but it was never set as the default for invoices for the customer, or specific foer the subscription/schedule

#

You need to do one of those

latent hawk
#

how would I have to do that?

fair spade
#

Either update the customer to set the attached payment method as the default for invoices using invoice_settings[default_payment_method: https://docs.stripe.com/api/customers/update#update_customer-invoice_settings-default_payment_method

Or, specify the payment method as the one to be used with the subscription created by the schedule using default_settings[default_payment_method]: https://docs.stripe.com/api/subscription_schedules/create#create_subscription_schedule-default_settings-default_payment_method

latent hawk
#

ok