Exemple #1
0
 def notify(self, get_transaction):
     get_transaction.return_value = {
             'status': constants.STATUS_COMPLETED,
             'notes': {'pay_request': self.payload(),
                       'issuer_key': 'k'},
             'type': constants.TYPE_PAYMENT,
             'uuid': self.trans_uuid
     }
     with self.settings(INAPP_KEY_PATHS={None: sample}, DEBUG=True):
         tasks.payment_notify('some:uuid')
Exemple #2
0
 def notify(self, get_transaction):
     get_transaction.return_value = {
         'status': constants.STATUS_COMPLETED,
         'notes': {
             'pay_request': self.payload(),
             'issuer_key': 'k'
         },
         'type': constants.TYPE_PAYMENT,
         'uuid': self.trans_uuid
     }
     with self.settings(INAPP_KEY_PATHS={None: sample}, DEBUG=True):
         tasks.payment_notify('some:uuid')
Exemple #3
0
 def notify(self, get_transaction):
     get_transaction.return_value = {
         "status": constants.STATUS_COMPLETED,
         "notes": {
             "pay_request": self.payload(),
             "issuer_key": self.iss.issuer_key,
             "issuer": Issuer.objects.get(pk=self.iss.pk),
         },
         "type": constants.TYPE_PAYMENT,
         "uuid": self.trans_uuid,
     }
     with self.settings(INAPP_KEY_PATHS={None: sample}, DEBUG=True):
         tasks.payment_notify("some:uuid")
Exemple #4
0
 def notify(self, get_transaction, **trans_kw):
     get_transaction.return_value = self.transaction(**trans_kw)
     with self.settings(INAPP_KEY_PATHS={None: sample}, DEBUG=True):
         tasks.payment_notify('some:uuid')
Exemple #5
0
 def notify(self, get_transaction, **trans_kw):
     get_transaction.return_value = self.transaction(**trans_kw)
     with self.settings(INAPP_KEY_PATHS={None: sample}, DEBUG=True):
         tasks.payment_notify('some:uuid')
Exemple #6
0
 def notify(self):
     with self.settings(INAPP_KEY_PATHS={None: sample}, DEBUG=True):
         tasks.payment_notify(self.trans.pk)