#ferreirA

1 messages ยท Page 1 of 1 (latest)

native wingBOT
fickle pike
#

Hello

#

Night

sick copper
#

Hi, can you elaborate a bit more or summarize your question?

fickle pike
#

yeah

#

this is a normal query:
'name:\'fakename\''

#

I want to switch fakename

#

for a javascript variable

#

is it possible

#

cause using this syntax is not working

#

it is not finding my customer

#

you get me?

sick copper
#

Um I think it's rather a syntax issue

#

How about building that queryString first, testing until you have a correct value, then pass the whole variable to the Stripe API

fickle pike
#

okay lemme test

#

strange thing is

#

It works this way

#

but I still get error

sick copper
#

seems it expects double quote

fickle pike
#

yo

#

got it working by doin this:

let query = 'name:\'fakename\''.replace("fakename", usernameParsed);```
sick copper
#

glad to hear!

fickle pike
#

just incase someone pass to this

#

there you have ๐Ÿ˜‰

#

and also

#

my editor had a setting called formatOnSave

#

set to true, that was removing my slashes

#

by that, the syntax was breaking

sick copper
#

common caveat tho ๐Ÿ˜„

fickle pike
#

but now i'm getting another error from other thing

sick copper
#

Okie, what is it?

fickle pike
#

Ah, nevermind