#mark_googlepay-tokenization

1 messages ยท Page 1 of 1 (latest)

clear fieldBOT
#

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

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

keen hawk
#

Hello

tall tapir
#

hi there

keen hawk
#

Yes this is possible though we don't recommend it as it brings about a much higher PCI burden

tall tapir
#

Yes, we are fully PCI DSS compliant

keen hawk
#

But if you are going to do so then here is a cURL example of what that code might look like: curl -XPOST https://api.stripe.com/v1/payment_intents \ -u 'sk_...': \ -d "amount"=100 \ -d "currency"=usd \ -d "payment_method_types[]"=card \ -d "confirm"=true \ -d "payment_method_data[type]"=card \ -d "payment_method_data[card][exp_month]"=01 \ -d "payment_method_data[card][exp_year]"=2024 \ -d "payment_method_data[card][last4]"=4242 \ -d "payment_method_data[card][network_token][number]"="{DPAN_HERE}" \ -d "payment_method_data[card][network_token][exp_month]"=01 \ -d "payment_method_data[card][network_token][exp_year]"=2024 \ -d "payment_method_options[card][network_token][cryptogram]"="{CRYPTOGRAM}" \ -d "payment_method_data[card][network_token][tokenization_method]"=google_pay_dpan \ -d "payment_method_options[card][network_token][electronic_commerce_indicator]"=05

#

You can use that code within our SDKs as well

tall tapir
#

This seems for CRYPTOGRAM_3DS, possible with PAN_ONLY ?

#

we are going to request 3ds manually

keen hawk
#

Ah yeah in that case you omit the cryptogram, tokenization method, and electronic commerce indicator

tall tapir
keen hawk
#

The above would attempt to create a Charge immediately

#

And would return an associated PaymentMethod ID (pm_xxx ) for the payment method

#

You can also do the above with our legacy Tokens API if you want

tall tapir
#

so if we want to just save the payment method, in that case?

keen hawk
#

Then you would use a SetupIntent

#

Instead of PaymentIntent

keen hawk
#

Yep

tall tapir
keen hawk
#

For the Tokens API?

#

I don't have one handy, but you should be able to test it pretty easily using the 4242 card

tall tapir
keen hawk
#

android_pay but that is only if you are passing cryptogram and ECI

#

Otherwise you are basically just passing it as a normal Raw PAN

tall tapir
keen hawk
#

No you omit tokenization method completely. So just the above without tokenization method at all

tall tapir
#
curl -XPOST https://api.stripe.com/v1/tokens \
-u 'sk_...':  \
-d "card[exp_month]"=01 \
-d "card[exp_year]"=2024 \
-d "card[last4]"=4242 \
-d "card[network_token][number]"="{DPAN_HERE}" \
-d "card[network_token][exp_month]"=01 \
-d "card[network_token][exp_year]"=2024 \

#

that should be it?

keen hawk
#

Yes I believe so

#

Test it out with the 4242 card and let me know if it doesn't work

#

Hmm it is possible with the Tokens API that you don't even pass network_token at all

#

You would just pass number

#
-u 'sk_...':  \
-d "card[exp_month]"=01 \
-d "card[exp_year]"=2024 \
-d "card[number]"=4242424242424242 \```
#

Yeah I believe that is correct -- I don't think we support passing Network Tokens on the Tokens API

clear fieldBOT
tall tapir
#

this works but, now the card.wallet.type doesn't display google_pay

frank eagle
#

Hi ๐Ÿ‘‹

I'm stepping in as my colleague needs to go

tall tapir
#

hello ๐Ÿ‘‹

frank eagle
#

So you are tokenizing decrypted google pay tokens? As my colleague noted, you need to pass android_pay as the tokenization method. These tokens will not display as Google Pay in the card.wallet.type property

tall tapir
#

basically only cryptogram 3ds tokens will show as google_pay

#

right?

frank eagle
#

Wait... what does 3DS have to do with this?