lib/active_merchant/billing/integrations/robokassa/common.rb in activemerchant-1.31.1 vs lib/active_merchant/billing/integrations/robokassa/common.rb in activemerchant-1.32.0
- old
+ new
@@ -4,10 +4,10 @@
module Robokassa
module Common
def generate_signature_string
custom_param_keys = params.keys.select {|key| key =~ /^shp/}.sort
custom_params = custom_param_keys.map {|key| "#{key}=#{params[key]}"}
- [main_params, secret, custom_params].flatten.compact.join(':')
+ [main_params, secret, custom_params.compact].flatten.join(':')
end
def generate_signature
Digest::MD5.hexdigest(generate_signature_string)
end