#perry-setupintent-help

1 messages ยท Page 1 of 1 (latest)

cerulean orbitBOT
hushed glade
#

Hello ๐Ÿ‘‹
Not sure I fully grasp the question. Taking a step back, can you share your usecase? What exactly are you trying to do?
Like are you trying to build a flow that let's customers store payment methods? If so, are you using Stripe Elements (like PaymentElement)?

floral kettle
#

Yes sure, give me a sec

#

So i am trying to store payment_methods and as of now i am using CardNumberElement, CardExpiryElement, CardCvcElement(for normal card) and PaymentRequestButtonElement (for apple pay)

#

After i have created setupIntent, i need to confirm the setupIntent via ID i receive in response of setupIntent creation

cerulean orbitBOT
floral kettle
#

but while doing so we need to pass extra params,

      createResponse.id,
      {
        payment_method: 'pm_card_<3DS>',
        return_url: returnUrl
      }
    )```
haughty knoll
#

@floral kettle there's no reason to pass a payment method here. Which tutorial are you following?

#

perry-setupintent-help

floral kettle
#

where they have given "pm_card_visa" as payment_method as a hardcoded value, so how to we test for 3DS authentication under "pm_card_visa"? since no matter which card we provide the 3DS authentication window doesn't show up unless i provide 'pm_card_threeDSecure2Required'

floral kettle
haughty knoll
#

That is the exact same thing except you do a SetupIntent instead

#

but the overall flow and calls are identical

#

This doc says stripe.confirmCardPayment(clientSecret, { payment_method: { card: card, billing_details: { name: 'Jenny Rosen' } } })
And yours would be the exact same except you call confirmCardSetup() instead

floral kettle
#

okay, i get it now,
What would be the response of this confirmCardSetup ? and will this ask for additional steps like 3DS authentication?

haughty knoll
#

It's a promise, same as what is in that doc

#

Really I recommend just trying it in Test mode to understand what's happening

floral kettle
#

okay let me try confirmCardSetup once and will be back
but with other API i have tried and just letting you know, even if you provide card number with 3DS authentication these API does not provide status "requires_action" but end up being "succeeded"

#

so not sure if card required 3DS authentication then how are going to handle such request

haughty knoll
#

that's expected behaviour. You call confirmCardSetup() and we do 3DS for you and only respond after

floral kettle
#

Okay, let me try and be back ๐Ÿ™‚