#dingkai031

1 messages · Page 1 of 1 (latest)

cerulean tangleBOT
ruby tartan
#

Hi there, can you share with me the request_log_url that you get in the error response

proven tendon
#

this one is confirmPayment

ruby tartan
#

OK, then means you didn't pass a valid elements in stripe.confirmPayment()

proven tendon
#

yes I understand, but that's not the question

#

what method should I use to confirm the payment element?

#

I already try using those 2

#

this is my current code

ruby tartan
#

For PaymentElement you should use stripe.confirmPayment()

#

Ah I see the problem

#

you should pass elements, not paymentElement, to stripe.confirmPayment()

proven tendon
#

wow, it's true. It works now, thanks

ruby tartan
#

👍