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

returning an Order is not using common params #526

Merged
merged 1 commit into from
Feb 26, 2018

Conversation

tylerkovacs
Copy link
Contributor

@tylerkovacs tylerkovacs commented Feb 26, 2018

The Client code is not currently using commonParams when returning an order. As a result, information (such as setting the StripeAccount) is lost.

@tylerkovacs tylerkovacs force-pushed the tyler/fix-order-returns branch from 95c1ae9 to b94de0a Compare February 26, 2018 20:57
@tylerkovacs
Copy link
Contributor Author

Tested by spinning up an ephemeral server (using httptest.NewServer) and verifying that a request header, which is derived from common params, is sent.

@tylerkovacs tylerkovacs force-pushed the tyler/fix-order-returns branch from b94de0a to 69058af Compare February 26, 2018 20:59
@brandur-stripe
Copy link
Contributor

Thanks a lot Tyler! (It's nice to have a test template now for this kind of thing now too, thanks for adding that.)

@brandur-stripe brandur-stripe merged commit bd0ad33 into stripe:master Feb 26, 2018
@brandur-stripe
Copy link
Contributor

Released as 29.2.0.

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.

2 participants