#ChibiDragoon
1 messages ยท Page 1 of 1 (latest)
Hi ๐ can you tell me about the issue you're facing?
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?
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.
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
Gotcha, are you using our SDK, or are you using a different approach to generate the requests to our API?
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
Gotcha, then you'll want to debug what in that stack is converting those values and find a way to avoid that.
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
That section is showing how to use our PHP SDK, if you're building requests yourself you should be referencing our curl samples.
i see it is still weird that the variable name is different depending on the version
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.
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.
Yes, our endpoint for creating Payment Intents accepts a payment_method parameter:
https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yes, i found it as you were typing ๐