#altszommmmme_api
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/1379690700223938561
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi! Looking into this!
You are using unknown parameters:
wallet: {
type: "google_pay",
},
You only pass the token: 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.
we have access to Raw Pans usage and google_pay decrypted tokens
"message": "Received unknown parameter: card[token]",
but the error states card[token] is unknown param?
I understand the error is not very accurate. I tested it with the wallet parameter and without it. It worked without it and I got the same error as you with the parameter.
I am looking into your earlier reply.
I believe this is a valid parameter,
{
"error": {
"message": "Invalid card[wallet][type]: must be one of google_pay, apple_pay, or meta_pay",
"param": "card[wallet][type]",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_HTsL1lQafpRQZw?t=1749015461",
"type": "invalid_request_error"
}
}
req_HTsL1lQafpRQZw
it does not accept card[token]
it needs something like: card[wallet][token] or card[wallet][google_pay][token]
but I don't know the parameter for passing on it
@keen bloom Google Pay tokens, are there any equivalent param values for testing this on /v1/tokens ?
I am not seeing the parameter you are passing in your request. I also don't see it in the document you provided. Give me a moment to look into it.
Can I check where did you get the card.wallet parameter from?
it does not accept card[token], I think it needs something like: card[wallet][token] or card[wallet][google_pay][token]
I found the card.wallet in docs and was told by stripe support
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Do you have the link to the document?
If I had it, I won't have asked you here
I am unable to find that parameter in our documentation. The way to create a payment method on Stripe with a token object is to use the card.token.
Can I check what is the purpose of using card.wallet?
{
"error": {
"message": "Google Pay Payment Method token is invalid.",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_oVugh6Jarg8wY4?t=1749016981",
"type": "invalid_request_error"
}
}
{
"error": {
"code": "parameter_unknown",
"doc_url": "https://stripe.com/docs/error-codes/parameter-unknown",
"message": "Received unknown parameter: payment_method_data[card][token]",
"param": "payment_method_data[card][token]",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_xUrgsEKDTUuFJk?t=1749017074",
"type": "invalid_request_error"
}
}
the confirmation tokens API, also does not accept the card.token param
to add the props of card.wallet.type ?!
req_oVugh6Jarg8wY4
I understand that but what does it change when you use the payment method object to create a charge?
for the users, saved payment methods will show as
"wallet": {
"dynamic_last4": "4242",
"google_pay": {},
"type": "google_pay"
}
our client side logic is, if the card has google_pay wallet params, then it will show the google_pay logo instead of brand
@keen bloom but I don't know why the api refuses to accept card[token] , it is a well documented param as well not something like a gated feature
"message": "Received unknown parameter: card[token]",
maybe @novel nova can help ?