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.



229
230
231
232
233
234
# File 'lib/active_merchant/billing/gateways/netaxept.rb', line 229

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.



228
229
230
# File 'lib/active_merchant/billing/gateways/netaxept.rb', line 228

def error_detail
  @error_detail
end