Class: Ipizza::Provider::Nordea::PaymentRequest
- Inherits:
-
Ipizza::PaymentRequest
- Object
- Request
- Ipizza::PaymentRequest
- Ipizza::Provider::Nordea::PaymentRequest
- Defined in:
- lib/ipizza/provider/nordea/payment_request.rb
Constant Summary
Constants inherited from Request
Instance Attribute Summary collapse
-
#params ⇒ Object
Returns the value of attribute params.
-
#service_url ⇒ Object
Returns the value of attribute service_url.
Attributes inherited from Request
Instance Method Summary collapse
Instance Attribute Details
#params ⇒ Object
Returns the value of attribute params.
6 7 8 |
# File 'lib/ipizza/provider/nordea/payment_request.rb', line 6 def params @params end |
#service_url ⇒ Object
Returns the value of attribute service_url.
7 8 9 |
# File 'lib/ipizza/provider/nordea/payment_request.rb', line 7 def service_url @service_url end |
Instance Method Details
#request_params ⇒ Object
14 15 16 |
# File 'lib/ipizza/provider/nordea/payment_request.rb', line 14 def request_params params end |
#sign(key_path) ⇒ Object
9 10 11 12 |
# File 'lib/ipizza/provider/nordea/payment_request.rb', line 9 def sign(key_path) key = File.read(key_path).strip self.params['MAC'] = Digest::MD5.hexdigest(mac_data_string(key)).upcase end |