lib/active_merchant/billing/gateways/payex.rb in activemerchant-1.83.0 vs lib/active_merchant/billing/gateways/payex.rb in activemerchant-1.84.0

- old
+ new

@@ -68,11 +68,10 @@ end else # stored authorization send_autopay(amount, payment_method, true, options) end - end # Public: Send a purchase Payex request # # amount - The monetary amount of the transaction in cents. @@ -385,14 +384,14 @@ '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), - message_from(response), - response, - test: test?, - authorization: build_authorization(response) - ) + message_from(response), + response, + test: test?, + authorization: build_authorization(response) + ) end def build_authorization(response) # agreementref is for the store transaction, everything else gets transactionnumber response[:transactionnumber] || response[:agreementref]