lib/active_merchant/billing/gateways/fat_zebra.rb in activemerchant-1.103.0 vs lib/active_merchant/billing/gateways/fat_zebra.rb in activemerchant-1.104.0

- old
+ new

@@ -147,10 +147,11 @@ def commit(method, uri, parameters=nil) response = begin parse(ssl_request(method, get_url(uri), parameters.to_json, headers)) rescue ResponseError => e - return Response.new(false, 'Invalid Login') if(e.response.code == '401') + return Response.new(false, 'Invalid Login') if e.response.code == '401' + parse(e.response.body) end success = success_from(response) Response.new(