lib/pagarme.rb in pagarme-2.1.0 vs lib/pagarme.rb in pagarme-2.1.1
- old
+ new
@@ -1,8 +1,9 @@
require 'set'
require 'time'
require 'digest/sha1'
+require 'openssl'
require_relative 'pagarme/version'
require_relative 'pagarme/core_ext'
require_relative 'pagarme/object'
require_relative 'pagarme/model'
@@ -23,9 +24,10 @@
self.api_endpoint = 'https://api.pagar.me/1'
self.open_timeout = 30
self.timeout = 90
self.api_key = ENV['PAGARME_API_KEY']
- def self.validate_fingerprint(id, fingerprint)
- PagarMe::Postback.validate id, fingerprint
+ # TODO: Remove deprecated PagarMe.validate_fingerprint
+ def self.validate_fingerprint(*args)
+ raise '[Deprecation Error] PagarMe.validate_fingerprint is deprecated, use PagarMe::Postback.valid_request_signature? instead'
end
end