lib/active_merchant/billing/gateways/payway.rb in activemerchant-1.133.0 vs lib/active_merchant/billing/gateways/payway.rb in activemerchant-1.137.0
- old
+ new
@@ -190,12 +190,16 @@
message = "#{SUMMARY_CODES[params[:summary_code]]} - #{RESPONSE_CODES[params[:response_code]]}"
success = (params[:summary_code] ? (params[:summary_code] == '0') : (params[:response_code] == '00'))
- Response.new(success, message, params,
+ Response.new(
+ success,
+ message,
+ params,
test: (@options[:merchant].to_s == 'TEST'),
- authorization: post[:order_number])
+ authorization: post[:order_number]
+ )
rescue ActiveMerchant::ResponseError => e
raise unless e.response.code == '403'
return Response.new(false, 'Invalid credentials', {}, test: test?)
rescue ActiveMerchant::ClientCertificateError