phuesler / payone_connect

Simple http client for the psp payone api (http://www.payone.de/)
http://github.com/phuesler/payone_connect
MIT License
13 stars 4 forks source link

Parse keys with empty values and use URI.encode_www_form_component #2

Closed janraasch closed 10 years ago

janraasch commented 10 years ago
  1. Fixes error when response contains key without value. Use case: managemandate api request with status=APPROVED yields empty mandate_text.
  2. Use URI.encode_www_form_component instead of URI.encode. URI.encode_www_form_component is an implementation of http://www.w3.org/TR/html5/forms.html#url-encoded-form-data which is exactly what is needed to build the body of a request with Content-Type: application/x-www-form-urlencoded.

This also includes a fix for an error we encountered on our CI server, which is similiar to what @langalex did over at https://github.com/langalex/payone_connect/commit/c6d3b80d5b65d6e8a74a3a025942e085529f7097

phuesler commented 10 years ago

Released new version 0.3.1. Sorry about the release date mix up.

janraasch commented 10 years ago

Thanks, @phuesler.