#mark_api

1 messages ¡ Page 1 of 1 (latest)

sly escarpBOT
dim houndBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

sly escarpBOT
#

👋 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/1242318071881007114

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

half moat
#

so I was asking , if it is possible to tokenize google pay decrypted tokens

#

which are of method PAN_ONLY / dont have CRYPTOGRAM_3DS

#
curl -XPOST https://api.stripe.com/v1/tokens \
-u 'sk_...':  \
-d "card[exp_month]"=01 \
-d "card[exp_year]"=2024 \
-d "card[number]"=4242424242424242 \
-d "card[tokenization_method]"=android_pay \
pine wyvern
#

Tokens API are legacy integration. Could you share what you're trying to achieve? It's possible to save decrypted Google Pay token into a payment method

half moat
#

using this, it doesn't show card.wallet.type as google_pay

curl -XPOST https://api.stripe.com/v1/tokens \
-u 'sk_...':  \
-d "card[exp_month]"=01 \
-d "card[exp_year]"=2024 \
-d "card[number]"=4242424242424242 \

pine wyvern
#

With PAN only, the payment method will be saved as a card instead of google_pay. google_pay type will only be available when it's in CRYPTOGRAM_3DS

half moat
half moat
pine wyvern
#

but using the Stripe SDKs, if the card doesn't have cryptogram, it still gets saved as google_pay
Stripe SDK works differently from accessing direct decrypted google pay token by yourself

dim houndBOT
half moat
#

same for apple_pay I believe

abstract nest
#

Hi @half moat I'm taking over this thread.

abstract nest
#

Can you tell me what you mean by "saved as google_pay", do you have a PaymentIntent ID that I can take a look?

abstract nest
#

OK. I think river has already answered this question.

With PAN only, the payment method will be saved as a card instead of google_pay. google_pay type will only be available when it's in CRYPTOGRAM_3DS

half moat
#

one last thing, is it possible to convert sources to payment_method?

#

like for tokens we can use card[token]

abstract nest
half moat
#

I am asking for sources

abstract nest
half moat
#

For sources, it gives out an error, that it must be attached to a customer to be used as a payment method

#
 "error": {
        "message": "A source must be attached to a customer to be used as a `payment_method`.",
        "param": "payment_method",