#bilalahmer

1 messages · Page 1 of 1 (latest)

desert estuaryBOT
serene moat
#

If the payment intent is in a requires_action state then it can't be successful until authentication is complete

smoky storm
#

Oh got it thanks.

smoky storm
#

So can I bypass it temporary ?

serene moat
#

What do you mean by that?

smoky storm
#

Like I have recurring payments daily so can I bypass the 3D secure for tomorrow ?

serene moat
#

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

smoky storm
#

So how can I set up the card to potentially skip future authentication with setupIntent ?

serene moat
smoky storm
#

The above link is using checkout session but I used setupIntent .
Stripe::SetupIntent.create({ customer: @customer_id })

serene moat
desert estuaryBOT
smoky storm
#

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

serene moat
#

Are you usre that you passed in a payment method to your creation request? Do you have a request ID?

smoky storm
#

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, })

vagrant oar
#

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.