lib/active_merchant/billing/gateways/balanced.rb in activemerchant-1.100.0 vs lib/active_merchant/billing/gateways/balanced.rb in activemerchant-1.101.0

- old
+ new

@@ -153,20 +153,21 @@ post[:on_behalf_of_uri] = options[:on_behalf_of_uri] post[:meta] = options[:meta] end def commit(entity_name, path, post, method=:post) - raw_response = begin - parse(ssl_request( - method, - live_url + "/#{path}", - post_data(post), - headers - )) - rescue ResponseError => e - raise unless(e.response.code.to_s =~ /4\d\d/) - parse(e.response.body) - end + raw_response = + begin + parse(ssl_request( + method, + live_url + "/#{path}", + post_data(post), + headers + )) + rescue ResponseError => e + raise unless(e.response.code.to_s =~ /4\d\d/) + parse(e.response.body) + end Response.new( success_from(entity_name, raw_response), message_from(raw_response), raw_response,