예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
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)
예제 #4
0
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)
예제 #5
0
    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)