#numericity_reactnative-paymentmethod
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/1219767842203766936
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hey ๐
Hi there! After confirmation, you can retrieve the SetupIntent to get the payment_method ID. If you need to retrieve details about the PaymentMethod (not just its ID), you can expand payment_method when retrieving the SetupIntent: https://docs.stripe.com/api/expanding_objects
Ah ok, so I basically just return the setup intent id to the client-side, and on success use it in a separate request to the my backend to retrieve and set the payment method?
Can you clarify what you mean by "set the payment method"?
numericity_reactnative-paymentmethod
Attach it to a subscription
Yeah so on your server you retrieve the SetupIntent, check the PaymentMethod id in payment_method and then you can make it the default for the Subscription using default_payment_method on the Update Subscription API https://docs.stripe.com/api/subscriptions/update
Does that make sense?
Yeah, perfect