#xqprtzcv
1 messages · Page 1 of 1 (latest)
Hi, what are you trying to do?
I have a custom payment flow using elements. I am making my own saved card section, and I would like users to be able to use saved cards or the payment element for card information.
You can build this, where if someone has a saved Payment Method, they can pass the payment method id, https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method on the Payment Intent creation and then confirm the payment. If they do not, you collect the Payment Method details on your client side.
Ok, so just don't use stripe.confirmPayment when they use the save card. Thank you
Sure!
And if I have both the payment and address element, then the suggested way, is to get the info from the address element using JS and then send that along with the payment method id to my own API endpoint?
What does 'to my own API endpoint' mean?
Send the info off of my front end to the backend