Example #1
0
 def verify_secret(self, form_instance, secret):
     """
     Verifies an IPN payment over SSL using EWP. 
     
     """
     from paypal.standard.helpers import check_secret
     if not check_secret(form_instance, secret):
         self.set_flag("Invalid secret.")
Example #2
0
 def verify_secret(self, form_instance, secret):
     """
     Verifies an IPN payment over SSL using EWP. 
     
     """
     from paypal.standard.helpers import check_secret
     if not check_secret(form_instance, secret):
         self.set_flag("Invalid secret.")
     
     if self.flag:
         payment_was_flagged.send(sender=self)
     else:
         if self.is_subscription_cancellation():
             subscription_was_cancelled.send(sender=self)
         elif self.is_subscription_signup():
             subscription_was_signed_up.send(sender=self)
         elif self.is_subscription_end_of_term():
             subscription_was_eot.send(sender=self)
         elif self.is_subscription_modified():
             subscription_was_modified.send(sender=self)
         else:
             payment_was_successful.send(sender=self)
Example #3
0
 def verify_secret(self, form_instance, secret):
     """Verifies an IPN payment over SSL using EWP."""
     if not check_secret(form_instance, secret):
         self.set_flag("Invalid secret. (%s)") % secret
     self.save()
     self.send_signals()
Example #4
0
 def verify_secret(self, form_instance, secret):
     """Verifies an IPN payment over SSL using EWP."""
     if not check_secret(form_instance, secret):
         self.set_flag("Invalid secret. (%s)") % secret
     self.save()
Example #5
0
 def verify_secret(self, form_instance, secret):
     """Verifies an IPN payment over SSL using EWP."""
     warn_untested()
     if not check_secret(form_instance, secret):
         self.set_flag("Invalid secret. (%s)") % secret
     self.save()