예제 #1
0
파일: pay2.py 프로젝트: scaperow/carive
    def get(self):
        tn = self.get_argument("tn", None)
        subject = self.get_argument("subject", "账户充值")
        body = self.get_argument("body", "充值")
        price = self.get_argument("price", None)

        if tn and price:
            price = float(price)
            alipay = Alipay(**self.settings)
            self.redirect(alipay.create_payurl_cz(tn, subject, body, price))