#ronald_api
1 messages ¡ Page 1 of 1 (latest)
đ 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.
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
Hi there -- what exactly are you trying to do? What do you expect this to do instead?
Can you share the schedule ID here?
sub_sched_1ReGtjICcfgou5MaUCPWc6jF
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
how would I have to do that?
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
ok