code: def verify_secret(self, form_instance, secret):
          
          warn_untested()
          if not check_secret(form_instance, secret):
              self.set_flag("Invalid secret. (%s)") % secret
          self.save()
docs: Verifies an IPN payment over SSL using EWP.