Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ldy
/
payment
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a42c3810
authored
Apr 17, 2024
by
郑健康(PHP)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
慧收钱支付模块添加门店编号支付方式
1 parent
df680436
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
src/Common/Hsq/Data/Charge/PubChargeData.php
src/Common/HsqConfig.php
src/Common/Hsq/Data/Charge/PubChargeData.php
View file @
a42c381
...
...
@@ -49,6 +49,7 @@ class PubChargeData extends ChargeBaseData
];
$signContent
=
[
/* 业务请求参数 begin */
'subMerchantNo'
=>
$this
->
subMerchantNo
,
//门店编号
'transNo'
=>
$this
->
transNo
,
//商户订单号
'payType'
=>
$this
->
payType
,
//支付类型
'orderAmt'
=>
intval
(
$this
->
orderAmt
),
//交易金额, 交易金额,单位为:分
...
...
src/Common/HsqConfig.php
View file @
a42c381
...
...
@@ -32,6 +32,8 @@ final class HsqConfig extends ConfigInterface
public
$payType
=
'WECHAT_APPLET'
;
//交易类型
public
$subMerchantNo
;
public
$returnUrl
;
//异步回调地址
public
$requestDate
;
// 交易时间 格式为 yyyyMMddHHmmss
...
...
@@ -125,6 +127,10 @@ final class HsqConfig extends ConfigInterface
$this
->
payType
=
$config
[
'payType'
];
}
if
(
key_exists
(
'subMerchantNo'
,
$config
)
&&
!
empty
(
$config
[
'subMerchantNo'
]))
{
$this
->
subMerchantNo
=
$config
[
'subMerchantNo'
];
}
if
(
key_exists
(
'request_url'
,
$config
)
&&
!
empty
(
$config
[
'request_url'
]))
{
$this
->
base_url
=
$config
[
'request_url'
];
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment