#manuel_api

1 messages · Page 1 of 1 (latest)

viscid raptorBOT
#

👋 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/1469363184610578555

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

ancient hearth
#

Hello, Subscriptions don't assume which payment method is the default. So the PM will need to be set as either the customer's invoice_settings[default_payment_method] or the subscription's default_payment_method to be used automatically like that.

true kettle
#

mm ok ok

#

i understand

#

thank you!

#

i think that's all

ancient hearth
#

Awesome, let us know if you run in to anything else!

true kettle
#

Cool! ❤️

#

So when the subscription update is done, I'll have to list the new payment intent ID that the customer has and assign it to the subscription, is that right?

#

And will I have to do this every time the customer renews their subscription, or will doing it once be enough?

ancient hearth
#

The payment method ID, and if you set it in one of the fields I mentioned above, it will automatically by used for each renewal

#

Also the difference between those two is that the customer setting applies to all subscriptions that don't have a default themself. So if you might have multiple subscriptions and want them to all use one PM, using the customer setting will be easier

true kettle
#

ok nice! thats great to know

#

thank you!

#

And one last question: is there a way to know if a payment method is valid?

For example, let's say a customer has several payment methods attached and adds a new one, and one of these is assigned to the subscription. Would there be any problems, or would Stripe retry with the other payment methods the customer have?

viscid raptorBOT
ancient hearth
#

We only retry the payment method that you have set as the default. You can swap in other payment method IDs if you want to retry those

If it gets saved via the customer portal is means we validated it as best we could without charging it. Declines can always happen though, like someone could save a card with you and then not have sufficient funds when the charge actually happens.

true kettle
#

Okay, that's clear. Thank you very much for your time and help

#

🫡