#mark_api
1 messages ¡ Page 1 of 1 (latest)
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.
- mark_googlepay-tokenization, 10 hours ago, 46 messages
đ 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.
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 \
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
I want to save the google_pay payment method, using the decrypted google_pay tokens
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 \
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
in the docs, it suggests to use card[token] in payment methods api to convert the token into a payment_method
but using the Stripe SDKs, if the card doesn't have cryptogram, it still gets saved as google_pay
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
so only CRYPTOGRAM_3DS can be saved as google_pay ?
same for apple_pay I believe
Hi @half moat I'm taking over this thread.
Can you tell me what you mean by "saved as google_pay", do you have a PaymentIntent ID that I can take a look?
card.wallet.type = google_pay
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
Thanks!
one last thing, is it possible to convert sources to payment_method?
like for tokens we can use card[token]
Yes you can, by passing into the card hash with format card: {token: "tok_visa"}. https://docs.stripe.com/api/payment_methods/create#create_payment_method-card
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
works fine with tokens
I am asking for sources
If it's a card source, you can use it as a payment method object without doing any migration https://docs.stripe.com/payments/payment-methods/transitioning#compatibility
Call the payment method retrival API with the source ID to retrieve the payment method representation on the same card source object https://docs.stripe.com/api/payment_methods/retrieve
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
so if I have something like src_xxxx or card_xxxxxxxxxx those can be used as payment_method?
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",
Yes it needs to be attached to customer first