Remove unnecessary comments

This commit is contained in:
Maciej Szlosarczyk 2018-04-23 14:23:42 +03:00
parent 33a6971c37
commit b56fd73c92
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
5 changed files with 0 additions and 33 deletions

View file

@ -10,7 +10,6 @@ module Payments
base_json[:nonce] = SecureRandom.hex(15)
hmac_fields = (base_json.keys + ['hmac_fields']).sort.uniq!
# Not all requests require use of hmac_fields, add only when needed
base_json[:hmac_fields] = hmac_fields.join(',')
hmac_string = hmac_fields.map { |key, _v| "#{key}=#{base_json[key]}" }.join('&')
hmac = OpenSSL::HMAC.hexdigest('sha1', KEY, hmac_string)