Class: SecureTrading::Requests::AuthorisationWithTDS
- Inherits:
-
Authorisation
- Object
- SecureTrading::Request
- Authorisation
- SecureTrading::Requests::AuthorisationWithTDS
- Defined in:
- lib/secure_trading/requests/authorisation_with_tds.rb
Instance Attribute Summary collapse
-
#tds_response ⇒ Object
Returns the value of attribute tds_response.
Attributes inherited from Authorisation
#amount, #currency, #customer, #order, #payment_method, #settlement_day
Attributes inherited from SecureTrading::Request
Instance Method Summary collapse
Methods inherited from SecureTrading::Request
#error_message, #initialize, #process, #sanitized_xml_request, #xml_request
Constructor Details
This class inherits a constructor from SecureTrading::Request
Instance Attribute Details
#tds_response ⇒ Object
Returns the value of attribute tds_response.
5 6 7 |
# File 'lib/secure_trading/requests/authorisation_with_tds.rb', line 5 def tds_response @tds_response end |
Instance Method Details
#request_type ⇒ Object
7 8 9 |
# File 'lib/secure_trading/requests/authorisation_with_tds.rb', line 7 def request_type 'ST3DAUTH' end |
#to_hash ⇒ Object
11 12 13 14 15 |
# File 'lib/secure_trading/requests/authorisation_with_tds.rb', line 11 def to_hash hash = super() hash['PaymentMethod']['ThreeDSecure'] = self.tds_response hash end |