예제 #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')
예제 #2
0
파일: test_tasks.py 프로젝트: ferjm/webpay
 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')
예제 #3
0
파일: test_tasks.py 프로젝트: potch/webpay
 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")
예제 #4
0
파일: test_tasks.py 프로젝트: ralic/webpay
 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')
예제 #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')
예제 #6
0
파일: test_tasks.py 프로젝트: lonnen/webpay
 def notify(self):
     with self.settings(INAPP_KEY_PATHS={None: sample}, DEBUG=True):
         tasks.payment_notify(self.trans.pk)