lib/active_merchant/billing/gateways/axcessms.rb in activemerchant-1.133.0 vs lib/active_merchant/billing/gateways/axcessms.rb in activemerchant-1.137.0
- old
+ new
@@ -69,12 +69,16 @@
response = parse(ssl_post((test? ? test_url : live_url), "load=#{CGI.escape(request)}", headers))
success = (response[:result] == 'ACK')
message = "#{response[:reason]} - #{response[:return]}"
authorization = response[:unique_id]
- Response.new(success, message, response,
+ Response.new(
+ success,
+ message,
+ response,
authorization: authorization,
- test: (response[:mode] != 'LIVE'))
+ test: (response[:mode] != 'LIVE')
+ )
end
def parse(body)
return {} if body.blank?