lib/active_merchant/billing/gateways/pay_junction.rb in activemerchant-1.133.0 vs lib/active_merchant/billing/gateways/pay_junction.rb in activemerchant-1.137.0

- old
+ new

@@ -335,12 +335,16 @@ def commit(action, parameters) url = test? ? self.test_url : self.live_url response = parse(ssl_post(url, post_data(action, parameters))) - Response.new(successful?(response), message_from(response), response, + Response.new( + successful?(response), + message_from(response), + response, test: test?, - authorization: response[:transaction_id] || parameters[:transaction_id]) + authorization: response[:transaction_id] || parameters[:transaction_id] + ) end def successful?(response) SUCCESS_CODES.include?(response[:response_code]) || response[:query_status] == true end