#bilalahmer
1 messages · Page 1 of 1 (latest)
If the payment intent is in a requires_action state then it can't be successful until authentication is complete
Oh got it thanks.
So can I bypass it temporary ?
What do you mean by that?
Like I have recurring payments daily so can I bypass the 3D secure for tomorrow ?
There isn't a way to force a bypass of 3ds - you can use setup intents to set up the card to potentially skip future authentication, but it's always possible that the bank may reject that anad ask for authenticatino anyways
In other words, as long as you're using a setup intent to set up the payment method/card you should be fine in most cases (and 3ds should be skipped), but it still may be needed in the future
So how can I set up the card to potentially skip future authentication with setupIntent ?
Have you read this: https://stripe.com/docs/payments/save-and-reuse
The above link is using checkout session but I used setupIntent .
Stripe::SetupIntent.create({ customer: @customer_id })
If you click the "custom payment flow" tab it shows you how to do it with your own setup intent https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements
Ok after using this
intent = Stripe::PaymentIntent.create({ amount: 1099, currency: 'cad', automatic_payment_methods: {enabled: true}, customer: '{{CUSTOMER_ID}}', payment_method: '{{PAYMENT_METHOD_ID}}', off_session: true, confirm: true, })
throws error
You cannot confirm this PaymentIntent because it's missing a payment method. You can either update the PaymentIntent with a payment method and then confirm it again, or confirm it again directly with a payment method. I used this test card 4000002500003155
Are you usre that you passed in a payment method to your creation request? Do you have a request ID?
Ok one more thing
Like For testing I added the test card(4000002500003155) which requires authentication for off-session and when I entered it and was saving it for future usage it asked for authentication. But in original case I already had a stored payment method and when I charged it off-session it failed with 3d Auth.So with that code will it ask for the auth or I the customer still have to verify atleast once.
intent = Stripe::PaymentIntent.create({ amount: 1099, currency: 'cad', automatic_payment_methods: {enabled: true}, customer: '{{CUSTOMER_ID}}', payment_method: '{{PAYMENT_METHOD_ID}}', off_session: true, confirm: true, })
Hello! I'm taking over and catching up...
Any payment at any time might require 3D Secure. It's up to the card issuer; they can require 3D Secure whenever they want, so your integration needs to be able to handle that outcome for any transaction regardless of it being on or off session.