Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tamp_course_order
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭熊
tamp_course_order
Commits
259cf47b
Commit
259cf47b
authored
Dec 15, 2020
by
pengxiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微信公众号appid配置
parent
50ab388c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
config.yaml
app/config/config.yaml
+6
-0
alipayWap.py
app/utils/alipay/alipayWap.py
+0
-1
wx_app_pay.py
app/utils/wxpay/wx_app_pay.py
+1
-3
wx_jsapi_pay.py
app/utils/wxpay/wx_jsapi_pay.py
+2
-5
No files found.
app/config/config.yaml
View file @
259cf47b
...
...
@@ -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
app/utils/alipay/alipayWap.py
View file @
259cf47b
...
...
@@ -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
,
...
...
app/utils/wxpay/wx_app_pay.py
View file @
259cf47b
...
...
@@ -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'
...
...
app/utils/wxpay/wx_jsapi_pay.py
View file @
259cf47b
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment