#eoghanobrien
1 messages · Page 1 of 1 (latest)
Hi there. What do you need help with specifically?
Payment Intent is pi_3MbvZ1E3c9sWyeru0vsItBn3
I created a sub using Stripe Checkout, then later programmatically updated the sub to a new price id and set it to prorate
All of that worked fine but the payment failed because the payment intent (above) didn't have a payment method attached
I don't understand why it didn't have a payment method, isn't that created and stored for offline payments automatically?
because the original payment went through Stripe Checkout
Let me take a look
So that PI is linked to this invoice creation request: https://dashboard.stripe.com/test/logs/req_3MfgS0Rj5e0gfL
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Default payment method is only set at the subscription level not customer level
You would need to manually set https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
It's only set here: https://stripe.com/docs/api/subscriptions/object#subscription_object-default_payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Huh okay, so given what I explained above, what would be the best time to do what you're suggesting? Add the payment method to the customer before I change the subscription or before I create the invoice?
Any time before you need to create an ad-hoc invoice
Doesn't matter as long as it's done before you create an invoice manually
Okay, thank you! And thanks to you and your team for all of the fantastic support you all provide here!!