#dhruv_api

1 messages ¡ Page 1 of 1 (latest)

steady meteorBOT
#

👋 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.

outer bolt
#

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

smoky shuttle
#

hi there!

#

did you set the payment method as the default one on the customer object?

outer bolt
#

I didn't. I am just creating a customer record and then a checkout session under that customer

smoky shuttle
outer bolt
#

saved_payment_method_options.payment_method_save

#

Is there anyway that by default when a payment method is added it is set as default?

steady meteorBOT
smoky shuttle
#

no I don't think so, you'll need to make an extra API call for this.

outer bolt
#

Got it, and is there any event I can listen to when a payment method is added on the customer?