#SeanH20-element

1 messages · Page 1 of 1 (latest)

bold robin
#

Hi @loud cobalt! I'm not sure I fully understand the question.
Payment Element and Card Element are two different UIs. We recommend to use Payment Element that is the most recent and flexible option.
Both Payment Element and Card Element can work with PaymentIntent and SetupIntent.

loud cobalt
#

Sorry, let me try and explain that a bit better... In the docs it says PaymentIntent needs a card element to be passed in:

.confirmCardPayment('ABC', { payment_method: { card: cardElement }, })

However I've used a paymentElement everywhere else on the site, I was wondering how do I make the cardElement for this look like the other paymentElements (I've tried passing in a paymentElement in the js in confirmCardPayment but it's not working in the ways I've tried.)

Edit - here is where it says it needs a cardElement - https://stripe.com/docs/js/payment_intents/payment_method - so I was wondering how I make the cardElement look like the paymentElement.

bold robin