Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
system_pay
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王沛
system_pay
Commits
c2347ab6
Commit
c2347ab6
authored
Aug 28, 2023
by
wangp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lakala
parent
330bf178
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
config.yaml
conf/dev/config.yaml
+3
-3
config.yaml
conf/prod/config.yaml
+3
-3
pay.go
repository/pay/pay.go
+2
-1
No files found.
conf/dev/config.yaml
View file @
c2347ab6
...
...
@@ -54,7 +54,7 @@ lakala:
dbc_serial_no
:
'
00dfba8194c41b84cf'
#谛宝多多自营
#1.聚合收银台(微信H5、支付宝H5)
dbc_merchant_no1
:
'
8222900701107M5'
#2.聚合收银台(微信扫码、支付宝扫码)
#2.聚合收银台(微信扫码、支付宝扫码
、快捷支付(银行卡)
)
dbc_merchant_no2
:
'
8221210594300JY'
#3.聚合主扫(微信JSAPI、微信小程序)
dbc_merchant_no3
:
'
8222900581201QB'
...
...
@@ -76,7 +76,7 @@ lakala:
bk_serial_no
:
'
00dfba8194c41b84cf'
#必康自营 双击「api_cert.cer」文件,在详情里查看「serial_no」
#1.聚合收银台(微信H5、支付宝H5)
bk_merchant_no1
:
'
8222900701107M5'
#2.聚合收银台(微信扫码、支付宝扫码)
#2.聚合收银台(微信扫码、支付宝扫码
、快捷支付(银行卡)、微信小程序-必康自营
)
bk_merchant_no2
:
'
8221210594300JY'
#3.聚合主扫(微信JSAPI、微信小程序)
bk_merchant_no3
:
'
8222900581201QB'
...
...
@@ -96,7 +96,7 @@ lakala:
saas_serial_no
:
'
00dfba8194c41b84cf'
#必康医生
#1.聚合收银台(微信H5、支付宝H5)
saas_merchant_no1
:
'
8222900701107M5'
#2.聚合收银台(微信扫码、支付宝扫码)
#2.聚合收银台(微信扫码、支付宝扫码
、快捷支付(银行卡)
)
saas_merchant_no2
:
'
8221210594300JY'
#3.聚合主扫(微信JSAPI、微信小程序)
saas_merchant_no3
:
'
8222900581201QB'
...
...
conf/prod/config.yaml
View file @
c2347ab6
...
...
@@ -56,7 +56,7 @@ lakala:
dbc_serial_no
:
'
01896250fd68'
#谛宝多多自营
#1.聚合收银台(微信H5、支付宝H5)
dbc_merchant_no1
:
'
8221000599501K9'
#2.聚合收银台(微信扫码、支付宝扫码)
#2.聚合收银台(微信扫码、支付宝扫码
、快捷支付(银行卡)
)
dbc_merchant_no2
:
'
8221000599501K9'
#3.聚合主扫(微信JSAPI、微信小程序)
dbc_merchant_no3
:
'
8221000599501K9'
...
...
@@ -76,7 +76,7 @@ lakala:
bk_serial_no
:
'
01896253d115'
#必康自营 双击「api_cert.cer」文件,在详情里查看「serial_no」
#1.聚合收银台(微信H5、支付宝H5)
bk_merchant_no1
:
'
8221100899900E0'
#2.聚合收银台(微信扫码、支付宝扫码)
#2.聚合收银台(微信扫码、支付宝扫码
、快捷支付(银行卡)、微信小程序-必康自营
)
bk_merchant_no2
:
'
8221100899900E0'
#3.聚合主扫(微信JSAPI、微信小程序)
bk_merchant_no3
:
'
8221100899900E0'
...
...
@@ -96,7 +96,7 @@ lakala:
saas_serial_no
:
'
0188b7d3d751'
#必康医生
#1.聚合收银台(微信H5、支付宝H5)
saas_merchant_no1
:
'
'
#2.聚合收银台(微信扫码、支付宝扫码)
#2.聚合收银台(微信扫码、支付宝扫码
、快捷支付(银行卡)
)
saas_merchant_no2
:
'
'
#3.聚合主扫(微信JSAPI、微信小程序)
saas_merchant_no3
:
'
'
...
...
repository/pay/pay.go
View file @
c2347ab6
...
...
@@ -115,6 +115,7 @@ func UnifiedOrder(input *models.PlaceAnOrderParamInput, ip string) (interface{},
if
input
.
SourceCode
==
4
||
input
.
SourceCode
==
6
||
input
.
SourceCode
==
1
||
input
.
SourceCode
==
5
||
input
.
SourceCode
==
15
||
input
.
SourceCode
==
16
{
//聚合收银台(微信H5、支付宝H5、微信扫码、支付宝扫码)
//聚合收银台(快捷支付(银行卡))
//聚合收银台(微信小程序-必康自营)
//url = "https://test.wsmsd.cn/sit/api/v3/ccss/counter/order/create" //聚合收银台
url
=
setting
.
Conf
.
Lakala
.
UrlCreate
//聚合收银台
...
...
@@ -128,7 +129,7 @@ func UnifiedOrder(input *models.PlaceAnOrderParamInput, ip string) (interface{},
if
input
.
SourceCode
==
4
||
input
.
SourceCode
==
6
{
data2
[
"merchant_no"
]
=
merchant_no1
//微信H5、支付宝H5
}
else
{
data2
[
"merchant_no"
]
=
merchant_no2
//微信扫码、支付宝扫码
data2
[
"merchant_no"
]
=
merchant_no2
//微信扫码、支付宝扫码
、快捷支付(银行卡)、微信小程序-必康自营
}
data2
[
"total_amount"
]
=
input
.
GoodsPrice
*
100
data2
[
"out_order_no"
]
=
orderID
//随机生成的订单号 //商户订单号
...
...
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