#cetincem

1 messages ยท Page 1 of 1 (latest)

mossy juncoBOT
next kraken
#

Hi ๐Ÿ‘‹

Setup Intents do not receive funds

#

the status of requires_action is exactly what is supposed to happen with the intent. This is because it requires 3DS authentication

#

How are you confirming the Intent?

turbid fable
#

At the end of reservation, application shows the 3DS screen to user. Then user authenticates it and completes the payment

next kraken
#

What Stripe tools are you using to confirm the Intent? Is it a Setup Intent or a Payment Intent?

turbid fable
#

Actually I create setup intent with confirm: true parameter

next kraken
#

That only works if you are already providing the Payment Method

turbid fable
#

Yes I provide payment method too

next kraken
#

Okay so this will fail with 3DS required cards because the Customer is not on-session to authenticate

#

Let's zoom out and can you tell me what you are trying to do, big picture

turbid fable
#

Sure, we have a mobile application that users can find parking spots. When a user decides to park a spot, I create a setup intent for the payment. When user decides to leave the spot, app calculates the amount user has to pay.

#

When user leaves the spot, app automatically charges the user.

#

Everything works correctly with 3DS required card (4000000000003063) but the flow doesn't completed with 3DS2 required card (4000000000003220)

next kraken
#

Setup Intents do not take payment

#

you need to understand that

#

It saves the payment method

turbid fable
#

Okay we use the setup intent to create payment intent I believe.

#

Is it correct?

next kraken
#

No

#

Not at all

#

Setup Intents are used to set up a payment method and, optionally, save it to a Customer

#

Payment Intents collect funds but are not necessary tied to either a Customer or a Payment Method

turbid fable
#

Okay I understand that

#

But in my case issue is not related to receiving the payment

next kraken
#

Right, your mobile application needs to be able to handle the setup intent going to requires_action status

turbid fable
#

I check the events in the dashboard, it says "SetupIntent seti_1N1tE6Lj8vYuVxnTldN0YFHu requires you to take action in order to complete setup"

next kraken
#

What Stripe SDK are you using?

turbid fable
#

@stripe/stripe-react-native

#

and I use stripe nodejs module on backend

next kraken
turbid fable
#

I use card element to save payment method

next kraken
turbid fable
#

Okay I will check this guide immediately, but I have a question, is there any difference between 3DS and 3DS2 implementations?

next kraken
#

Yes, 3DS2 is what is required globally as of October 2022

turbid fable
#

Which versions of the stripe nodejs library and stripe/stripe-react-native support 3DS2?

next kraken
#

Current versions of each will support 3DS2. For RN that is 0.27.0 and v12.3.0 for Stripe Node. Please be aware that Stripe node is now being pinned to specific API versions. If you do not want to update your API version you can use an earlier version such as 12.1.1

turbid fable
#

Okay, thanks a lot. I guess I should update my packages because we are using very old version.

next kraken
#

Especially with React Native, since that is a very new project for us. Likely we will be able to provide seamless 3DS2 support in a newer version

turbid fable
#

Thanks for helping me. Sorry to bother you with too many questions ๐Ÿ™‚

#

Have a good day

next kraken
#

It's not a bother, that's why we are here. If, after you upgrade, you have more questions about your integration we'll be happy to help. ๐Ÿ™‚