#anshajain_react-native-3DS
1 messages ยท Page 1 of 1 (latest)
๐ 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.
Hi ๐
What do you mean you are not able to set customer details?
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
Okay so you are able to pass the parameters. But this has to do with whether the payment succeeds or not?
yep
Can you share the IDs of both the successful payment and the one that fails?
where do i get it
You can get it from the Stripe Dashboard by looking in your recent Payments
Or you can get it from the API response
one min pls
pi_3PF0mySAbmkAKQN90a709hXX
here u go
it for unsuccessful
pi_3PF0lLSAbmkAKQN917i5YMWJ
this if of successful
Thanks, I'm taking a look
The unsuccessful one failed a 3DS authentication. You can see in this request: https://dashboard.stripe.com/test/logs/req_EH1HgPtxkJUlXH that we needed you to perform 3DS when you attempted to confirm the payment.
But you successfully completed 3DS for the other payment intent.
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?
but on changing address it is not working if i use this one only then payment is successful on any other address it is unsuccessful
react native expo
these ones
That is how you confirm the payment
What elements are you using to collect the card information?
CardField
We have a guide specifically for React Native here: https://docs.stripe.com/payments/accept-a-payment?platform=react-native&mobile-ui=payment-element#react-native-collect-payment-details.
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?
i m redirected to another page but when i return the payment is unsuccesful
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
no i m not able to see them
What do you mean?
even when the payment is susccessful
Please share what you are seeing
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
Okay, it looks like that is how we implement test mode 3DS in our mobile SDKs
https://docs.stripe.com/payments/3d-secure/authentication-flow?platform=android
so how do i do it
What card information are you providing?
4242 4242 4242 4242
Oh ... wait. This is for India payments isn't it. Hmmmm
yeah
For your own address, can you try using this card number? 4000003560000008
We have test card numbers that are specific to the county https://docs.stripe.com/testing#international-cards
yeah it is working now
okay so for india this one card number should be used right?
For testing payments in INR, yes
and also if i m switching to production like real time payments then any card would work?
You mean actual cards in India for payments in INR?
yes
Yesh that should all just work
ok thanks for your time and help
Happy to do it ๐