lib/active_merchant/billing/gateways/clearhaus.rb in activemerchant-1.107.4 vs lib/active_merchant/billing/gateways/clearhaus.rb in activemerchant-1.108.0
- old
+ new
@@ -204,10 +204,10 @@
match.captures.first
end
def generate_signature(body)
key = OpenSSL::PKey::RSA.new(@options[:private_key])
- hex = key.sign(OpenSSL::Digest.new('sha256'), body).unpack('H*').first
+ hex = key.sign(OpenSSL::Digest.new('sha256'), body).unpack1('H*')
"#{@options[:signing_key]} RS256-hex #{hex}"
end
def error_code_from(response)