#thomasnevink
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
Could you please share the PaymentIntent ID pi_xxx?
pi_3Nt8FMSAXIBNGNHB1JoIJBPq
I don't see that you are providing any saved Payment Method in this request: https://dashboard.stripe.com/test/logs/req_eqnXIaYdYcxzXy
That is correct
It is a code level issue
It bypasses my stripe.confirmCardPayment() in my client side code, that is where my payment_method is set
Please follow this guide to charge the saved Payment Method: https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements#charge-saved-payment-method
You don't need to do anything on the frontend to confirm a PaymentIntent off-session.
This is not a future payment
Sorry, I don't follow. What are you trying to do?
Well, I have a checkout page where there is stripe card elements to enter card details and a checkbox to select if the user wants to save the card details for future use
So I have checked the checkbox and attached the card details to a customer by using a Create a Setupintent object for saving a card for future transaction
Why are you creating a SetupIntent?
If you've already saved the PM on the Checkout page?
After that I'm making the payment by clicking a pay button which triggers the stripe.confirmCardPayment
PM means?, so no need of creating a SetUpIntent?
PM - PaymentMethod.
My use case is just to save the card for future transactions
Wait, do you mean Stripe Checkout or your own checkout form with Stripe Elements?
I have my own form which injects stripe.js card elements
Do you want to:
- Charge the customer immediately, and save card for future usage, or
- Only save card for future usage?
1st one
Please follow this guide then: https://stripe.com/docs/payments/save-during-payment
I will have a look into it. If I hit a roadblock, Is it ok if I revert back to you?
Sure, my colleagues will be here to help.