#g105b
1 messages · Page 1 of 1 (latest)
Hi there 👋 when working with the Payment Element, instead of using payment method specific confirmation methods like confirmCardPayment, you'll want to use the generic version confirmPayment which supports a wider range of payment method types:
https://stripe.com/docs/js/payment_intents/confirm_payment
OK thank you. I'm implementing this in a hurry because about this time last year I was told (in here) to use the Orders API. It's been working perfectly ever since, but I got told last week that the orders API will be turned off next week!! So I'm refactoring everything and have learnt a lesson not to use beta APIs.
Now I've switched to confirmPayment, but I'm still struggling to get it to go through. Please see req_vQyouw13svkY5H. I have the PaymentIntent client secret, and I have an object returned from stripe.elements.create, but passing it into the confirmPayment function doesn't seem to work. The docs doesn't provide an example for this.
Hm, I'm not seeing that the contents of the Element were passed to the confirmation call. Can you share the snippet of the code that you're using to confirm the payment?
Sorry, I was passing the created elements object, not the Stripe.elements object itself. OK I've made a dev payment - thank you for guiding me.
I think I'm just about finished migrating from Orders API. It's been a bit of a rush, but the support here is the best in the world, so thank you very much!
Any time, wer're always happy to help!