|
@@ -1132,18 +1132,26 @@ class CloudStorageView(View):
|
|
|
aliPayObj = AliPayObject()
|
|
|
alipay = aliPayObj.conf()
|
|
|
subject = smqs[0]['title'] + smqs[0]['content']
|
|
|
-
|
|
|
+ # biz_content = {
|
|
|
+ # "subject": subject,
|
|
|
+ # "out_trade_no": orderID,
|
|
|
+ # "total_amount": price,
|
|
|
+ # "product_code": "QUICK_WAP_PAY",
|
|
|
+ # "quit_url": "{SERVER_DOMAIN}web/paid2/fail.html".format(SERVER_DOMAIN=SERVER_DOMAIN)
|
|
|
+ # # "qr_pay_mode":4
|
|
|
+ # }
|
|
|
order_string = alipay.api_alipay_trade_wap_pay(
|
|
|
out_trade_no=orderID,
|
|
|
total_amount=price,
|
|
|
subject=subject,
|
|
|
- quit_url= "{SERVER_DOMAIN}web/paid2/fail.html".format(SERVER_DOMAIN=SERVER_DOMAIN),
|
|
|
return_url="{SERVER_DOMAIN}web/paid2/success.html".format(SERVER_DOMAIN=SERVER_DOMAIN),
|
|
|
notify_url="{SERVER_DOMAIN_SSL}cloudstorage/doalicallback".format(
|
|
|
- SERVER_DOMAIN_SSL=SERVER_DOMAIN_SSL)
|
|
|
+ SERVER_DOMAIN_SSL=SERVER_DOMAIN_SSL),
|
|
|
+ quit_url="{SERVER_DOMAIN}web/paid2/fail.html".format(SERVER_DOMAIN=SERVER_DOMAIN),
|
|
|
# return_url="http://192.168.136.40/cloudstorage/payOK",
|
|
|
# notify_url="http://192.168.136.40/cloudstorage/aliPayCallback"
|
|
|
)
|
|
|
+
|
|
|
except Exception as e:
|
|
|
print(repr(e))
|
|
|
return response.json(10, repr(e))
|