예제 #1
0
파일: views.py 프로젝트: angru/the-tale
    def debug(self, id='13', sum='666', test='0', v1='*****@*****.**'):
        from the_tale.finances.xsolla.logic import check_user_md5, pay_md5, cancel_md5

        check_url = url('bank:xsolla:command',
                        command=COMMAND_TYPE.CHECK.value,
                        v1=v1,
                        md5=check_user_md5(COMMAND_TYPE.CHECK, v1))

        pay_url = url('bank:xsolla:command',
                      command=COMMAND_TYPE.PAY.value,
                      v1=v1,
                      id=id,
                      sum=sum,
                      test=test,
                      md5=pay_md5(COMMAND_TYPE.PAY, v1, id))

        cancel_url = url('bank:xsolla:command',
                         command=COMMAND_TYPE.CANCEL.value,
                         id=id,
                         md5=cancel_md5(COMMAND_TYPE.CANCEL, id))

        return self.json_ok(data={
            'check_url': check_url,
            'pay_url': pay_url,
            'cancel_url': cancel_url
        })
예제 #2
0
파일: views.py 프로젝트: Alkalit/the-tale
    def debug(self, id='13', sum='666', test='0', v1='*****@*****.**'):
        from the_tale.finances.xsolla.logic import check_user_md5, pay_md5, cancel_md5

        check_url = url('bank:xsolla:command',
                        command=COMMAND_TYPE.CHECK.value,
                        v1=v1,
                        md5=check_user_md5(COMMAND_TYPE.CHECK, v1) )

        pay_url = url('bank:xsolla:command',
                      command=COMMAND_TYPE.PAY.value,
                      v1=v1,
                      id=id,
                      sum=sum,
                      test=test,
                      md5=pay_md5(COMMAND_TYPE.PAY, v1, id) )

        cancel_url = url('bank:xsolla:command',
                        command=COMMAND_TYPE.CANCEL.value,
                        id=id,
                        md5=cancel_md5(COMMAND_TYPE.CANCEL, id) )

        return self.json_ok(data={'check_url': check_url,
                                  'pay_url': pay_url,
                                  'cancel_url': cancel_url})
예제 #3
0
 def setUp(self):
     super(CheckUserLogicTests, self).setUp()
     self.user_email = '*****@*****.**'
     self.check_user_md5 = check_user_md5(command=COMMAND_TYPE.CHECK,
                                          v1=self.user_email)
예제 #4
0
 def setUp(self):
     super(BaseRequestsTests, self).setUp()
     self.user_email = '*****@*****.**'
     self.check_user_md5 = check_user_md5(command=COMMAND_TYPE.CHECK, v1=self.user_email)