def send_signals(self): if self.flag: payment_flagged.send(sender=self) return if self.ORDERSTATUS in ['PAYMENT_AUTHORIZED', 'PAYMENT_RECEIVED', 'TEST']: payment_authorized.send(sender=self) if self.ORDERSTATUS == 'COMPLETE': payment_completed.send(sender=self)
def send_signals(self): if self.flag: payment_flagged.send(sender=self) return if self.ORDERSTATUS in ["PAYMENT_AUTHORIZED", "PAYMENT_RECEIVED", "TEST"]: payment_authorized.send(sender=self) if self.ORDERSTATUS == "COMPLETE": payment_completed.send(sender=self)
def post_payu_ipn_save(sender, instance=None, **kwargs): if instance.flag: payment_flagged.send(sender=instance) return if instance.is_authorized: payment_authorized.send(sender=instance) if instance.is_completed: payment_completed.send(sender=instance)
def send_signals(self): if self.flag: payment_flagged.send(sender=self) return if self.is_authorized: payment_authorized.send(sender=self) if self.is_completed: payment_completed.send(sender=self)