Class: Ideal::TransactionResponse
- Defined in:
- lib/ideal/response.rb
Overview
An instance of TransactionResponse is returned from Gateway#setup_purchase which returns the service_url to where the user should be redirected to perform the transaction and the transaction ID.
Instance Attribute Summary
Attributes inherited from Response
Instance Method Summary collapse
-
#order_id ⇒ Object
Returns the
:order_id
for this transaction. -
#service_url ⇒ Object
Returns the URL to the issuer’s page where the consumer should be redirected to in order to perform the payment.
-
#transaction_id ⇒ Object
Returns the transaction ID which is needed for requesting the status of a transaction.
Methods inherited from Response
#consumer_error_message, #error_code, #error_details, #error_message, #error_type, #initialize, #success?, #test?
Constructor Details
This class inherits a constructor from Ideal::Response
Instance Method Details
#order_id ⇒ Object
Returns the :order_id
for this transaction.
167 168 169 |
# File 'lib/ideal/response.rb', line 167 def order_id text('//purchaseID') end |
#service_url ⇒ Object
Returns the URL to the issuer’s page where the consumer should be redirected to in order to perform the payment.
156 157 158 |
# File 'lib/ideal/response.rb', line 156 def service_url CGI::unescapeHTML(text('//issuerAuthenticationURL')) end |
#transaction_id ⇒ Object
Returns the transaction ID which is needed for requesting the status of a transaction. See Gateway#capture.
162 163 164 |
# File 'lib/ideal/response.rb', line 162 def transaction_id text('//transactionID') end |