lib/pagarme/resources/postback.rb in pagarme-2.1.1 vs lib/pagarme/resources/postback.rb in pagarme-2.1.2

- old
+ new

@@ -1,8 +1,8 @@ module PagarMe class Postback < PagarMeObject def valid? - signature == self.class.signature(payload) + self.class.valid_request_signature? payload, signature end class << self def valid_request_signature?(payload, signature) kind, raw_signature = signature.split '=', 2