Commit 259cf47b authored by pengxiong's avatar pengxiong

微信公众号appid配置

parent 50ab388c
......@@ -21,6 +21,8 @@ dev:
https://devtamper.tanpuyun.com/fatools/token/auth
pay_url_prefix:
https://devtamper.tanpuyun.com
wx_jsapi_appid:
wx8ea86a9521d25095
test:
MySQL:
tamp_user_db: tamp_user
......@@ -44,6 +46,8 @@ test:
https://testtamper.tanpuyun.com/fatools/token/auth
pay_url_prefix:
https://testtamper.tanpuyun.com
wx_jsapi_appid:
wxe177c62fa1e1c602
prod:
MySQL:
tamp_user_db: tamp_user
......@@ -67,5 +71,7 @@ prod:
https://tamper.tanpuyun.com/fatools/token/auth
pay_url_prefix:
https://tamper.tanpuyun.com
wx_jsapi_appid:
wx95b0c12b47b758ac
......@@ -77,7 +77,6 @@ def init_alipay(notify_url):
def prePay(subject, out_trade_no, total_amount, notify_url):
"""创建预付订单."""
print('notify_url', notify_url)
result = init_alipay(notify_url).api_alipay_trade_app_pay(
subject=subject,
out_trade_no=out_trade_no,
......
......@@ -39,9 +39,7 @@ def genNonce_str():
class WXPay(object):
"""微信APP支付."""
def __init__(self, out_trade_no, body, total_fee, remote_addr, notify_url):
"""线上:tamper.tanpuyun.com
测试:testtamper.tanpuyun.com"""
print('notify_url', notify_url)
"""."""
self.timeStamp = int(time.time())
self.req_url = 'https://api.mch.weixin.qq.com/pay/unifiedorder'
self.appid = 'wx3ad4c5856975a2c4'
......
......@@ -28,13 +28,10 @@ def genNonce_str():
class WXPay(object):
"""微信公众号支付."""
def __init__(self, openid, out_trade_no, body, total_fee, remote_addr, notify_url):
"""线上:tamper.tanpuyun.com
测试:testtamper.tanpuyun.com"""
print('notify_url', notify_url)
"""."""
self.timeStamp = int(time.time())
self.req_url = 'https://api.mch.weixin.qq.com/pay/unifiedorder'
# self.appid = 'wx3ad4c5856975a2c4'
self.appid = 'wx8ea86a9521d25095'
self.appid = config[env]['wx_jsapi_appid']
self.mch_id = '1515329071'
self.openid = openid
self.nonce_str = genNonce_str()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment