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

Order#pay without arguments #789

Merged
merged 2 commits into from
May 28, 2019

Conversation

mbianco-stripe
Copy link
Contributor

Order#pay does not require arguments when an order is attached to a customer. Let's remove the requirement from the API to make paying orders a bit cleaner (order.pay vs order.pay({})).

Removing this requirement will not throw an argument error locally if the order does not have a customer and is attempted to be paid via the API. However, the API will throw a more descriptive error back to the user if the source param is committed which provides a better UX.

Copy link
Contributor

@ob-stripe ob-stripe left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@ob-stripe ob-stripe merged commit 41538b3 into stripe:master May 28, 2019
@ob-stripe
Copy link
Contributor

Released as 4.18.1.

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

Successfully merging this pull request may close these issues.

3 participants