Class: ActiveMerchant::Billing::IdealDirectoryResponse
- Inherits:
-
IdealResponse
- Object
- Response
- IdealResponse
- ActiveMerchant::Billing::IdealDirectoryResponse
- Defined in:
- lib/active_merchant_ideal/ideal_response.rb
Overview
An instance of IdealDirectoryResponse is returned from IdealGateway#issuers which returns the list of issuers available at the acquirer.
Instance Method Summary collapse
-
#list ⇒ Object
Returns a list of issuers available at the acquirer.
Methods inherited from IdealResponse
#consumer_error_message, #error_code, #error_details, #error_message, #error_type, #initialize
Constructor Details
This class inherits a constructor from ActiveMerchant::Billing::IdealResponse
Instance Method Details
#list ⇒ Object
Returns a list of issuers available at the acquirer.
gateway.issuers.list # => [{ :id => '1006', :name => 'ABN AMRO Bank' }]
233 234 235 236 237 |
# File 'lib/active_merchant_ideal/ideal_response.rb', line 233 def list @response.get_elements('//Issuer').map do |issuer| { :id => issuer.get_text('issuerID').to_s, :name => issuer.get_text('issuerName').to_s } end end |