#cat-invalid-parameter

1 messages ยท Page 1 of 1 (latest)

crimson tundra
#

Can you share more context? It looks like you are passing some kind of symbol/hash instead of a string

tepid junco
#

hi koopajah, it is from param billing name

#

doesn't happen when i test but end client tested and it came up

#

request id - req_PSmF0Q6AkGT9Z2

crimson tundra
#

look at your request, the name should be a string, you sent a weird hash that's like a JS object encoded in json or something

#

we need a real string value

tepid junco
#

thanks, I suppose I just need to debug my code!

#

thank you, take good care ๐Ÿ™‚

crimson tundra
#

if you have code to share I can help!

tepid junco
#

you're so cool! okay, one sec

#

js toward bottom is taking form inputs to pass to stripe to make payment method

#

has worked many times of me testing but somehow end client got that invalid string repsponse

crimson tundra
#

sorry but that's way too many lines of code

#

I can help you but just share the part that is relevant

#

ah I think it's stripe.createPaymentMethod({ type: 'card', card: card, billing_details: { name: cardHolderName, address: { line1: addressLine1, city: addressCity, state: addressState, postal_code: addressZipCode } } }).then(function (result) {

#

what is cardHolderName?

tepid junco
#

is is set above, from form input

crimson tundra
#
            const cardholderName = document.getElementById('cardholder-name');```
tepid junco
#

yep

crimson tundra
#

you should log that, Iassume it's not a string

tepid junco
#

right, good call. she must have typed in something strange or else I don't know how that could have become not a string

crimson tundra
#

I'd recommend adding clear logs there to make sure

tepid junco
#

thanks!