-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update file upload endpoint #292
Conversation
file: "@/path/to/a/file.jpg", | ||
purpose: "dispute_evidence" | ||
}) | ||
assert_stripe_requested :post, "/v1/files" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joshsmith so perhaps these are failing is b/c it is files.stripe.com
instead of api.stripe.com
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test file didn't exist before
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah found a request_file_upload
method in Stripe.Request
6672a8f
to
7cae938
Compare
c05ca29
to
e9ad677
Compare
e9ad677
to
0f8f672
Compare
93c58d3
to
ca6b2b3
Compare
@@ -183,7 +178,7 @@ defmodule Stripe.API do | |||
|> add_default_options() | |||
|> add_pool_option() | |||
|
|||
@http_module.request(method, req_url, req_headers, body, req_opts) | |||
@http_module.request(method, req_url, req_headers, req_body, req_opts) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is returning a 404
{:ok, 404,
[{"Stripe-Mock-Version", "master"}, {"Date", "Tue, 21 Nov 2017 06:05:38 GMT"},
{"Content-Length", "11"}, {"Content-Type", "text/plain; charset=utf-8"}],
"\"Not Found\""}
Hmmm. Wonder if the env variable is correct or actually need to reference a real file.
1 similar comment
This is blocked until we can figure out how to get the FileUpload API working with the OpenAPI spec. |
@snewcomer you'll need to rebase. I might run the |
ca6b2b3
to
65ca32c
Compare
6 similar comments
65ca32c
to
eb4d66a
Compare
eb4d66a
to
b7ebc83
Compare
Awaiting response to this issue: stripe/stripe-mock#35