#icurrytheteam
1 messages · Page 1 of 1 (latest)
Hi, are you ultimately looking to collect payment method details, and then charging the customer later for subscriptions using React?
Yes
Like, for example, we can collect their payment details, then when they purchase something later, they can select their payment method.
Similar to Uber or Netflix if that makes sense?
I think what you're looking for it here, https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements. You'll use the SetupIntents to collect payment details, then update the customer object to set the default payment method on the customer, https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method. Later, you can charge the customer for Subscriptions.
On the Payment Method selection option, you'd need to build that on your end. Currently, there is not a UI that shows saved payment methods like you mentioned.
Right and this the part where I seem to have confusion. I can create the form to input the payment details but how do I add button to confirm? Does it work exactly like how it does in the example?
Yes, you add that button on your end and when the button is clicked, you make the confirm call.