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

Catch InvalidRequestError thrown by invoices.create #324

Merged
merged 2 commits into from
Apr 14, 2017

Conversation

meshy
Copy link
Contributor

@meshy meshy commented Mar 9, 2017

I've been getting "Nothing to invoice for customer" thrown by the create(customer) call, and this small change fixes the error.

The full response body I was getting from POST /v1/invoices is:

{
  "error": {
    "type": "invalid_request_error",
    "message": "Nothing to invoice for customer",
    "param": "customer"
  }
}

I've been getting "Nothing to invoice for customer" thrown by the
create(customer) call, and this small change fixes the error.
@coveralls
Copy link

coveralls commented Mar 9, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling 5ffd66a on wildfoundry:nothing-to-invoice into ec14b69 on pinax:master.

@paltman paltman merged commit 5168b90 into pinax:master Apr 14, 2017
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.

3 participants