lib/active_merchant/billing/gateways/nab_transact.rb in activemerchant-1.133.0 vs lib/active_merchant/billing/gateways/nab_transact.rb in activemerchant-1.137.0
- old
+ new
@@ -231,19 +231,27 @@
end
def commit(action, request)
response = parse(ssl_post(test? ? self.test_url : self.live_url, build_request(action, request)))
- Response.new(success?(response), message_from(response), response,
+ Response.new(
+ success?(response),
+ message_from(response),
+ response,
test: test?,
- authorization: authorization_from(action, response))
+ authorization: authorization_from(action, response)
+ )
end
def commit_periodic(action, request)
response = parse(ssl_post(test? ? self.test_periodic_url : self.live_periodic_url, build_periodic_request(action, request)))
- Response.new(success?(response), message_from(response), response,
+ Response.new(
+ success?(response),
+ message_from(response),
+ response,
test: test?,
- authorization: authorization_from(action, response))
+ authorization: authorization_from(action, response)
+ )
end
def success?(response)
SUCCESS_CODES.include?(response[:response_code])
end