Sha256: 5ba1afb1ddfcab22fe1eb78dbf88b24c060317c7777316ea98bee3563af405f8
Contents?: true
Size: 315 Bytes
Versions: 1
Compression:
Stored size: 315 Bytes
Contents
module PagarMe class Postback < PagarMeObject def valid? self.class.validate id, fingerprint end def self.validate(id, fingerprint) fingerprint_for(id) == fingerprint end def self.fingerprint_for(id) Digest::SHA1.hexdigest id.to_s + "#" + PagarMe.api_key end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pagarme-2.1.0 | lib/pagarme/resources/postback.rb |