#romas9110

1 messages · Page 1 of 1 (latest)

sterile spearBOT
shadow wyvern
#

Hi there!

knotty prawn
#

hey

shadow wyvern
#

the Payment Element doesn't support this

#

but if you already have a payment method saved, then you don't need the Payment Element at all

#

you can directly try to charge the payment method

knotty prawn
#

I want to allow customer to change payment method during checkout. For example for service A he choose credit card VISA, for service B he decides to change to MASTERCARD

shadow wyvern
#

yes that's something you can build on your end: list all the customer's payment method, and display them on your website. then depending on what the user chose, create a PaymentIntent for that payment method.

#

no need for the Payment Element at all.

knotty prawn
#

hm, is there any demo code for this logic?

shadow wyvern
#

no sorry

#

but happy to help if something's not clear

knotty prawn
#

Ok, let's say I save customer CC during first checkout. And for second checkout I create PI with saved payment method. How to submit payment to stripe with that info from my system?

#

I guess there should be some button

shadow wyvern
knotty prawn
#

hm... So for customer it would be like simple button with "Submit payment" while at the top I show card which will be used for payment?

#

Is this doable I guess...

shadow wyvern
knotty prawn
#

daaamn... Thank you!