bitpay / ruby-client

Powerful, flexible, lightweight SDK for the BitPay Bitcoin Payment Gateway API.
MIT License
79 stars 64 forks source link

Add error checking #20

Closed heisler3030 closed 9 years ago

heisler3030 commented 9 years ago

Added a check for HTTP response code and throws an error for non success codes. This will catch bad/missing API keys which was my main goal.

Also added a test case because me luv em tests.