mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Remove unnecessary comments
This commit is contained in:
parent
33a6971c37
commit
b56fd73c92
5 changed files with 0 additions and 33 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue