#sorec_paymentmethod-default

1 messages ¡ Page 1 of 1 (latest)

twin vigilBOT
tall quarryBOT
#

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.

twin vigilBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1254851077455745106

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

dry minnow
#

Hey @ionic tusk I don't really get what your ask means right now. Can you tell me a bit more about your integration? For example are you using SetupIntent or PaymentIntent?

#

sorec_paymentmethod-default

ionic tusk
#

using setupintent

#

on the return url, I have stripe.retrieveSetupIntent(clientSecret).then(({setupIntent}) => {...})

dry minnow
#

Okay so once the SetupIntent is confirmed, you have to mark the PaymentMethod as default yourself. We don't have an option on SetupIntent to make this automatic.
So when you retrieve that SetupIntent it will have payment_method: 'pm_123' and then you can call the Update Customer API https://docs.stripe.com/api/customers/update and pass invoice_settings[default_payment_method]: 'pm_123' to mark it the default
Does that make sense?

ionic tusk
#

Got it, so there is an additional step you would have to do after.

#

Thanks