#dhruv_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/1491783448673783879
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- dhruv_api, 17 hours ago, 12 messages
Hi Soma, quick context here, I am creating a checkout session and added save payment method variable. When someone completes the payment and save payment details, it is showing on customer, but when I create an invoice with charge automatically then it is failing
cus_UIhIV3Ptc1GPMu
hi there!
did you set the payment method as the default one on the customer object?
I didn't. I am just creating a customer record and then a checkout session under that customer
then you are missig one step: update the customer object with a default payment method (that will be used for all invoices). in the API it's https://docs.stripe.com/api/customers/update#update_customer-invoice_settings-default_payment_method
saved_payment_method_options.payment_method_save
Is there anyway that by default when a payment method is added it is set as default?
no I don't think so, you'll need to make an extra API call for this.
Got it, and is there any event I can listen to when a payment method is added on the customer?