#Paul Magico
1 messages · Page 1 of 1 (latest)
HI 👋 if you switch to application/x-www-form-urlencoded as the error suggests, do you stop encountering the error?
Looks like you're currently using application/json:
httpWebRequest.ContentType = "application/json";
I tried that but then it's not receiving my json and it seems to look for a FORM parameter called "ord" instead
Can we not post JSON to your APIs?
No, our API is expecting you to provide form-encoded request bodies:
https://stripe.com/docs/api#:~:text=accepts form-encoded request bodies
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I see - I'll try that instead - thanks