Class: ActiveMerchant::Billing::IdealResponse

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

Instance Attribute Summary

Attributes inherited from Response

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

Instance Method Summary collapse

Methods inherited from Response

#fraud_review?, #initialize, #success?, #test?

Constructor Details

This class inherits a constructor from ActiveMerchant::Billing::Response

Instance Method Details

#errorObject



23
24
25
# File 'lib/active_merchant/billing/gateways/ideal/ideal_response.rb', line 23

def error
  @params.values[0]['Error']
end

#issuer_listObject



5
6
7
8
9
10
11
12
13
# File 'lib/active_merchant/billing/gateways/ideal/ideal_response.rb', line 5

def issuer_list      
  list = @params.values[0]['Directory']['Issuer']
  case list
    when Hash
      return [list]
    when Array
      return list
  end  
end

#service_urlObject



15
16
17
# File 'lib/active_merchant/billing/gateways/ideal/ideal_response.rb', line 15

def service_url
  @params.values[0]['Issuer']['issuerAuthenticationURL']
end

#transactionObject



19
20
21
# File 'lib/active_merchant/billing/gateways/ideal/ideal_response.rb', line 19

def transaction
  @params.values[0]['Transaction']
end