#gaurav_token-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/1270796226312278028
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
@wanton tide what's your exact question? Like what is your exact code and what is or isn't working?
gaurav_token-3ds
how can I pass below fields while calling Stripe.card.createToken
Browser IP Address (browser) - Mandatory
Browser Screen Height (browser) - Mandatory
Browser Screen Width (browser) - Mandatory
Cardholder Billing Address City - Good to have
Cardholder Billing Address Country - Good to have
Cardholder Billing Address Line 1 - Good to have
Cardholder Billing Address Postal Code - Good to have
Cardholder Billing Address State - Good to have
Cardholder Email Address - Mandatory unless phone number is provided
Cardholder Phone Number
and where do we need to pass these fields if not in Stripe.card.createToken
damn that is a really bad support article that makes no sense lol. Sorry first time ever seeing this. Did someone from Stripe reach out asking you to make some changes?
Browser Screen Height (browser) - Mandatory
Browser Screen Width (browser) - Mandatory``` it's impossible for you to pass this information. So you can't and you should just ignore
All the other ones are easier, you pass them as you create the Token: <https://docs.stripe.com/js/tokens/create_token?type=cardElement#stripe_create_token-data>
there is an email to my team
Do you know the email subject? I want to flag internally that this makes no sense ๐
I don't have email I need to check with my team
but https://docs.stripe.com/js/tokens/create_token?type=cardElement#stripe_create_token-data here there is no field for email & phone number
correct, the Tokens API has never supported this and never will
so sadly if you are required to pass this information you will have to move away from the Token API and start using the PaymentMethod API instead
can you share details and doc link
It's hard to help you because I have no idea what you're doing and what you are using. You solely mentioned a call to the Create Token API and that's it.
Sorry there are dozens of ways to integrate our products and APIs, and it might not be just a change to 2 lines of code.
But conceptually you're replace the call to create a Card Token and instead create a PaymentMethod https://docs.stripe.com/js/payment_methods/create_payment_method
ok, let me explain in details
first I am collecting card details then calling Stripe.card.createToken(cardData) to create a token then using https://docs.stripe.com/api/payment_intents/create to create payment intent and then https://docs.stripe.com/api/payment_intents/capture to capture it
Do you know why you are using Tokens which we deprecated back in 2018 when we introduced the PaymentIntent API?
we never upgraded, so what new flow you suggest without using stripe cardelement
I am not able to find email & phone number option https://docs.stripe.com/js/payment_methods/create_payment_method here also
so what new flow you suggest without using stripe cardelement
what does that mean though? What are you using today? Are you using Stripe.js v2?
we are using V3
Okay so you are using CardElement right?
no, we are using our own card component
That's impossible with v3, which is why I was asking
v3 requires that you use one of our official UI elements
no we are using Stripe.card.createToken(cardobject) and it's working
I'm fairly sure it's impossible except for like 3 large users. If that's your case I unfortunately can't help you here and the best approach will be to reach out to your Stripe contact to get 1:1 help over email
ok but evern if we use stripeelemnt but still we can't pass these visa new fields right?
https://docs.stripe.com/js/tokens/create_token?type=cardElement
correct that's what I was explaining. You'd swap to the Create PaymentMethod API which will work similarly. Instead of a tok_123 you will get a pm_123 and use that when you confirm the PaymentIntent
In PaymentMethod API also I don't see any parameter.
ok, thanks