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

- old
+ new

@@ -383,14 +383,16 @@ headers = { 'Content-Type' => 'application/soap+xml; charset=utf-8', 'Content-Length' => request.size.to_s } response = parse(ssl_post(url, request, headers)) - Response.new(success?(response), + Response.new( + success?(response), message_from(response), response, test: test?, - authorization: build_authorization(response)) + authorization: build_authorization(response) + ) end def build_authorization(response) # agreementref is for the store transaction, everything else gets transactionnumber response[:transactionnumber] || response[:agreementref]