lib/pesapal/oauth.rb in pesapal-1.5.5 vs lib/pesapal/oauth.rb in pesapal-1.5.6

- old
+ new

@@ -72,10 +72,10 @@ # # @param token_secret [String] the token secret. # # @return [String] valid oAuth signature. def self.generate_oauth_signature(http_method, absolute_url, params, consumer_secret, token_secret = nil) - digest = OpenSSL::Digest::Digest.new('sha1') + digest = OpenSSL::Digest.new('sha1') signature_base_string = generate_signature_base_string(http_method, absolute_url, params) signing_key = generate_signing_key(consumer_secret, token_secret) hmac = OpenSSL::HMAC.digest(digest, signing_key, signature_base_string) Base64.encode64(hmac).chomp end