#gaurav_token-3ds

1 messages ยท Page 1 of 1 (latest)

amber karmaBOT
#

๐Ÿ‘‹ 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.

dull dragon
#

@wanton tide what's your exact question? Like what is your exact code and what is or isn't working?

#

gaurav_token-3ds

wanton tide
#

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

dull dragon
#

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?

wanton tide
#

yes,

#

there is an email to my team

dull dragon
#
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 ๐Ÿ˜…

wanton tide
#

I don't have email I need to check with my team

dull dragon
#

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

wanton tide
#

can you share details and doc link

dull dragon
#

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

wanton tide
dull dragon
#

Do you know why you are using Tokens which we deprecated back in 2018 when we introduced the PaymentIntent API?

wanton tide
#

we never upgraded, so what new flow you suggest without using stripe cardelement

dull dragon
#

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?

wanton tide
#

we are using V3

dull dragon
#

Okay so you are using CardElement right?

wanton tide
#

no, we are using our own card component

dull dragon
#

That's impossible with v3, which is why I was asking

#

v3 requires that you use one of our official UI elements

wanton tide
#

no we are using Stripe.card.createToken(cardobject) and it's working

dull dragon
#

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

wanton tide
dull dragon
#

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

wanton tide
#

In PaymentMethod API also I don't see any parameter.

wanton tide
#

ok, thanks