Class: ActiveMerchant::Billing::IdealTransactionResponse

Inherits:
IdealResponse
  • Object
show all
Defined in:
lib/active_merchant_ideal/ideal_response.rb

Overview

An instance of IdealTransactionResponse is returned from IdealGateway#setup_purchase which returns the service_url to where the user should be redirected to perform the transaction and the transaction ID.

Instance Method Summary collapse

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

#order_idObject

Returns the :order_id for this transaction.



156
157
158
# File 'lib/active_merchant_ideal/ideal_response.rb', line 156

def order_id
  text('//purchaseID')
end

#service_urlObject

Returns the URL to the issuer’s page where the consumer should be redirected to in order to perform the payment.



145
146
147
# File 'lib/active_merchant_ideal/ideal_response.rb', line 145

def service_url
  CGI::unescapeHTML(text('//issuerAuthenticationURL'))
end

#transaction_idObject

Returns the transaction ID which is needed for requesting the status of a transaction. See IdealGateway#capture.



151
152
153
# File 'lib/active_merchant_ideal/ideal_response.rb', line 151

def transaction_id
  text('//transactionID')
end