ticketevolution/ronin — pull request #3 by jkrall (2012-02-12 22:43:25+00:00)
Title: Content type fix

This pull request fixes some problems in how requests to the Samurai API were being made.

Specifically, the content-type header was not being set, and it was defaulting to sending http url-encoded params, instead of an XML body. This would cause Samurai to respond in-kind and provide an HTML error response when the request was invalid.

Tweaked the Connection class a bit to fix this up, and added a test for a bad payment_method_token.
All tests pass!