예제 #1
0
파일: pay.py 프로젝트: gislite/cakeshop
 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(tn, subject, body, price))
예제 #2
0
파일: pay.py 프로젝트: lyzhanghai/wxshop
 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(tn, subject, body, price))
예제 #3
0
파일: pay2.py 프로젝트: scaperow/carive
 def post(self):
     tn = self.get_argument("tn", None)
     subject = self.get_argument("subject", "商品购买")
     body = self.get_argument("body", "购买商品")
     price = self.get_argument("price", None)
     is_bank = self.get_argument("is_bank", '')
     if tn and price:
         price = float(price)
         alipay = Alipay(**self.settings)
         self.redirect(
             alipay.create_payurl(tn, subject, body, price, is_bank))