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 6e67d54b
authored
May 06, 2024
by
yeran
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_hsq'
2 parents
c8210e4b
a42c3810
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 @
6e67d54
...
...
@@ -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 @
6e67d54
...
...
@@ -34,6 +34,8 @@ final class HsqConfig extends ConfigInterface
public
$payType
=
'WECHAT_APPLET'
;
//交易类型
public
$subMerchantNo
;
public
$returnUrl
;
//异步回调地址
public
$requestDate
;
// 交易时间 格式为 yyyyMMddHHmmss
...
...
@@ -127,6 +129,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