#anshajain_react-native-3DS

1 messages ยท Page 1 of 1 (latest)

torpid obsidianBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1238597917040967682

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

flint turret
#

Hi ๐Ÿ‘‹

What do you mean you are not able to set customer details?

maiden sable
#

i mean that there is default address here

.setAddress(
                                CustomerCreateParams.Address.builder()
                                        .setLine1("510 Townsend St")
                                        .setPostalCode("98140")
                                        .setCity(city)
                                        .setState("CA")
                                        .setCountry("US")

                                        .build()
#

this one

#

if i use this then payment is successful

#

if i m using my own address it is not successful

flint turret
#

Okay so you are able to pass the parameters. But this has to do with whether the payment succeeds or not?

maiden sable
#

yep

flint turret
#

Can you share the IDs of both the successful payment and the one that fails?

maiden sable
#

where do i get it

flint turret
#

You can get it from the Stripe Dashboard by looking in your recent Payments

#

Or you can get it from the API response

maiden sable
#

one min pls

#

pi_3PF0mySAbmkAKQN90a709hXX

#

here u go

#

it for unsuccessful

#

pi_3PF0lLSAbmkAKQN917i5YMWJ

#

this if of successful

flint turret
#

Thanks, I'm taking a look

#

But you successfully completed 3DS for the other payment intent.

maiden sable
#

i can't see that

#

also how can i do that

flint turret
#

This will have nothing to do with addresses

#

also how can i do that
It looks like you are using our React Native SDK to collect payment method information. What elements specifically are you using?

maiden sable
flint turret
#

That is how you confirm the payment

#

What elements are you using to collect the card information?

maiden sable
#

CardField

flint turret
#

3DS is handled by the SDK when you attempt to confirm the Payment Intent.

What did you see on the screen when you submitted your card info?

maiden sable
#

i m redirected to another page but when i return the payment is unsuccesful

flint turret
#

That redirection is what 3DS authentication is. You should see two buttons, Succeed and Fail .

#

You need to click the Succeed button for the authentication to succeed

maiden sable
#

no i m not able to see them

flint turret
#

What do you mean?

maiden sable
#

even when the payment is susccessful

flint turret
#

Please share what you are seeing

maiden sable
#

i m being redirected to another page then it keeps loading and then again i m redirected to my previous screen and then payment is successful

#

if using previous already hardcoded address

flint turret
maiden sable
#

so how do i do it

flint turret
#

What card information are you providing?

maiden sable
#

4242 4242 4242 4242

flint turret
#

Oh ... wait. This is for India payments isn't it. Hmmmm

maiden sable
#

yeah

flint turret
#

For your own address, can you try using this card number? 4000003560000008

maiden sable
#

yeah it is working now

#

okay so for india this one card number should be used right?

flint turret
#

For testing payments in INR, yes

maiden sable
#

and also if i m switching to production like real time payments then any card would work?

flint turret
#

You mean actual cards in India for payments in INR?

maiden sable
#

yes

flint turret
#

Yesh that should all just work

maiden sable
#

ok thanks for your time and help

flint turret
#

Happy to do it ๐Ÿ™‚