lib/active_merchant/billing/gateways/cyber_source.rb in activemerchant-1.64.0 vs lib/active_merchant/billing/gateways/cyber_source.rb in activemerchant-1.65.0

- old
+ new

@@ -684,9 +684,11 @@ def commit(request, action, amount, options) begin response = parse(ssl_post(test? ? self.test_url : self.live_url, build_request(request, options))) rescue ResponseError => e response = parse(e.response.body) + rescue REXML::ParseException => e + response = { message: e.to_s } end success = response[:decision] == "ACCEPT" message = @@response_codes[('r' + response[:reasonCode]).to_sym] rescue response[:message] authorization = success ? [ options[:order_id], response[:requestID], response[:requestToken], action, amount, options[:currency]].compact.join(";") : nil