#ChibiDragoon

1 messages ยท Page 1 of 1 (latest)

radiant martenBOT
chilly urchin
#

Hi ๐Ÿ‘‹ can you tell me about the issue you're facing?

high forge
#

here is the request id
req_fz0Mmq2kvdms6S

#

it says that i have an invalid boolean: 1

#

the way I wrote it is the same as the documentation so I don't understand how I could get the error

#

is there something i could be missing to make it work correctly?

chilly urchin
#

Thank you, taking a look. It looks like you're passing a 1 instead of a boolean value for the automatic_payment_methods.enabled parameter.

high forge
#

in my code, i am passing a true value I do not know why it is converted to a 1

#

i can try to force the value and see what it does

#

ok I found why I send a 1 instead of true

#

it's when i post the value. something converts my true to a 1

chilly urchin
#

Gotcha, are you using our SDK, or are you using a different approach to generate the requests to our API?

high forge
#

another approach

#

i'm sending an http request with php

#

when i do request\Body::Form, the form converts the body into a string and the true value becomes a 1 instead

chilly urchin
#

Gotcha, then you'll want to debug what in that stack is converting those values and find a way to avoid that.

high forge
#

indeed

#

ok i fixed it but now it tells me i did not provide a stripe account header
req_IfyxyN8FCLCBLK

the issue is that i did. Is there a way i can see the received headers in the logs?

#

all i see is the body

#

ok i made it work. You guys have to change your documentation

#

i had to write stripe-account and not stripe_account

chilly urchin
#

That section is showing how to use our PHP SDK, if you're building requests yourself you should be referencing our curl samples.

high forge
#

i see it is still weird that the variable name is different depending on the version

chilly urchin
#

We do that so the casing can better match what is typically used for a specific language. Our libraries handle building the requests to our service, so they can rename/restructure fields as necessary.

high forge
#

ok

#

is there a way to add a payment method to the payment intent as i am creating it? I see that i can give informations about certain info like the type but not selecting one.

chilly urchin
high forge
#

yes, i found it as you were typing ๐Ÿ˜…

radiant martenBOT