Class: ActiveMerchant::Billing::NetaxeptGateway::Response

Inherits:
Response
  • Object
show all
Defined in:
lib/active_merchant/billing/gateways/netaxept.rb

Instance Attribute Summary collapse

Attributes inherited from Response

#authorization, #avs_result, #cvv_result, #message, #params, #test

Instance Method Summary collapse

Methods inherited from Response

#fraud_review?, #success?, #test?

Constructor Details

#initialize(success, message, raw, options) ⇒ Response

Returns a new instance of Response.



223
224
225
226
227
228
# File 'lib/active_merchant/billing/gateways/netaxept.rb', line 223

def initialize(success, message, raw, options)
  super
  unless success
    @error_detail = raw[:processSetup]['Result']['ResponseText'] if raw[:processSetup] && raw[:processSetup]['Result']
  end
end

Instance Attribute Details

#error_detailObject (readonly)

Returns the value of attribute error_detail.



222
223
224
# File 'lib/active_merchant/billing/gateways/netaxept.rb', line 222

def error_detail
  @error_detail
end