#BenXk
1 messages · Page 1 of 1 (latest)
Not sure I understand the Q. What do you mean by 'saved payments for checkout'?
Is there a doc you're following?
So I am using the saved payment methods from stripe
I want to use this to complete checkout
But the docs I have seen require you to pass elements to confirm payment, but my element is empty as I am using a saved payment
Hope that makes sense
When you say 'checkout', do you mean Checkout (https://stripe.com/docs/payments/checkout)? Or your own payment flow with Elements?
Is there a pi_xxx ID I can look at?
Sorry, I don't mean stripe checkout
We have our own checkout, I am showing the saved payment methods if there are any, and I want to use that to complete the payment
I guess this one pi_3Ls6TzGjvZKiAZK90PJaB1n3
Ok, got it. In that cased you want confirmCardPayment function from Stripe.js: https://stripe.com/docs/js/payment_intents/confirm_card_payment#stripe_confirm_card_payment-existing
You can pass the existing pm_xxx ID when confirming instead of an Elements instance