#hungry-issuing-physical

1 messages ยท Page 1 of 1 (latest)

final warren
#

@latent scarab can you share your code? I can show you what's wrong after that

latent scarab
#

While I pull up the code, the first object is the params im sending in call and second object is error being returned

#

Manager File:

#

Client File:

final warren
#

I can't do much with pictures of code unfortunately

#

can you share the real code here and/or an exact request that is failing?

latent scarab
#

let me rip it out rn! give me a sec

final warren
#

Ah wow ok

#

why aren't you using our official client library?

#

your code will never work :p

#

you're doing your own encoding, which basically can't work, at least not that way. Using the official stripe-node is really what you should be doing

latent scarab
#

right im using the beta for treasury so its not implemented some of these calls into node yet

final warren
#

yeah but you can use stripe-node for the majority of those calls.

#

If you do this yourself you need to make sure you use application/x-www-form-urlencoded for all the params

#

so you need to send shipping[address][city]=city shipping[address][country]=US etc

latent scarab
#

let me try working on that formatting

final warren
#

do you have an example request id?

#

yeah

#

you just leaked your API key

#

deleted but make sure to roll it

#

be super careful with those headers, they have your raw API key ๐Ÿ™‚

latent scarab
#

oop yeah lmao it was just a test one thankfully ๐Ÿ˜†