Skip to content
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

Fix Stripe.File.create #838

Merged
merged 1 commit into from
May 7, 2024
Merged

Fix Stripe.File.create #838

merged 1 commit into from
May 7, 2024

Conversation

aymanosman
Copy link
Contributor

@aymanosman aymanosman commented May 5, 2024

Problem: Stripe.File.create was failing

  • It seems that this library was building the wrong url, ending in /v1//v1/files. This was fixed by changing the config variable api_upload_url.
  • The test for file upload was skipped, presumably because stripe-mock used not to support it. It does now, so I've enabled the test and fixed it.
  • Lastly, I changed an existing test which is failing for me, but I'm not sure if this will break other people's tests. It is in test/stripe/subscriptions/credit_note_test.exs and it only involves the order of query parameters. Hopefully this fix is stable.

@aymanosman aymanosman requested a review from a team as a code owner May 5, 2024 09:04
@@ -43,7 +43,7 @@ defmodule Stripe.Mixfile do
defp env do
[
api_base_url: "https://api.stripe.com",
api_upload_url: "https://files.stripe.com/v1/",
api_upload_url: "https://files.stripe.com",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

confirmed, we

|> Stripe.Request.put_endpoint("/v1/files")

@yordis
Copy link
Member

yordis commented May 5, 2024

CI is failing hhhhmmm

@aymanosman
Copy link
Contributor Author

CI is failing hhhhmmm

Seems unrelated to this PR. Also failing in this PR.

Error is something to do with the erlexec application.

@yordis
Copy link
Member

yordis commented May 5, 2024

Would you mind digging into it? Otherwise, I could follow up on by the end of the next week (if I do not forget*)

@aymanosman
Copy link
Contributor Author

I'll take a look

@aymanosman
Copy link
Contributor Author

@yordis I've found the problem, please take a look at this PR #839

@yordis
Copy link
Member

yordis commented May 6, 2024

Rebase and we go to go

@yordis yordis merged commit a9ce057 into beam-community:main May 7, 2024
10 checks passed
@yordis
Copy link
Member

yordis commented May 7, 2024

🚀 💜

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants