Class: Ipizza::Provider::Nordea::PaymentRequest

Inherits:
Ipizza::PaymentRequest show all
Defined in:
lib/ipizza/provider/nordea/payment_request.rb

Constant Summary

Constants inherited from Request

Request::PARAM_ORDER

Instance Attribute Summary collapse

Attributes inherited from Request

#extra_params, #sign_params

Instance Method Summary collapse

Instance Attribute Details

#paramsObject

Returns the value of attribute params.



6
7
8
# File 'lib/ipizza/provider/nordea/payment_request.rb', line 6

def params
  @params
end

#service_urlObject

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_paramsObject



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