#KhullaSaand
1 messages · Page 1 of 1 (latest)
Why don't you use Stripe PHP library to upload the file? https://stripe.com/docs/file-upload
But would this make difference, all other APIs are working fine with this and for one API I can't update or use library
Stripe library will set necessary headers and format the request body by default. File upload API is different from other API, so it may be some parts of the request configurations are not correct
In https://github.com/stripe/stripe-php/blob/master/lib/File.php#L71-L83, it looks like Stripe PHP library flattens the parameters to avoid choking on nested arrays
Can you give it a try?
Okay, let me give a try.
Thanks