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 becd7b3d
authored
May 06, 2024
by
yeran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add hsq merchant_no
1 parent
6e67d54b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
composer.json
src/Common/Hsq/Data/Charge/PubChargeData.php
composer.json
View file @
becd7b3
{
"name"
:
"ldy/payment"
,
"type"
:
"library"
,
"version"
:
"3.6.
2
"
,
"version"
:
"3.6.
3
"
,
"description"
:
"支付宝支付、微信支付、招商一网通支付、通联支付、米付支付、利楚扫呗、富友支付、联拓付、易生支付、银盛支付、微诺付、汇收钱 php SDK。"
,
"keywords"
:
[
"alipay"
,
"weixin"
,
"支付宝支付"
,
"微信支付"
,
"通联支付"
,
"集成支付接口SDK"
,
"招商一网通"
,
"一网通"
,
"利楚扫呗"
,
"富友支付"
,
"微诺付"
,
"汇收钱"
],
"homepage"
:
""
,
...
...
src/Common/Hsq/Data/Charge/PubChargeData.php
View file @
becd7b3
...
...
@@ -49,16 +49,18 @@ class PubChargeData extends ChargeBaseData
];
$signContent
=
[
/* 业务请求参数 begin */
'subMerchantNo'
=>
$this
->
subMerchantNo
,
//门店编号
'transNo'
=>
$this
->
transNo
,
//商户订单号
'payType'
=>
$this
->
payType
,
//支付类型
'orderAmt'
=>
intval
(
$this
->
orderAmt
),
//交易金额, 交易金额,单位为:分
'goodsInfo'
=>
$this
->
goodsInfo
,
//商品信息
'returnUrl'
=>
$this
->
returnUrl
,
//后端通知地址, 用户支付完成后,慧收钱服务器主动通知商户服务器里指定地址
'returnUrl'
=>
$this
->
returnUrl
,
//后端通知地址, 用户支付完成后,慧收钱服务器主动通知商户服务器里指定地址
'requestDate'
=>
$this
->
requestDate
,
//请求时间
'memo'
=>
json_encode
(
$memo
,
JSON_UNESCAPED_UNICODE
),
'memo'
=>
json_encode
(
$memo
,
JSON_UNESCAPED_UNICODE
),
/* 业务请求参数 end */
];
if
(
!
empty
(
$this
->
subMerchantNo
))
{
$signContent
[
'subMerchantNo'
]
=
$this
->
subMerchantNo
;
//门店编号
}
$signData
=
[
/* 公共请求参数 begin */
...
...
@@ -67,7 +69,7 @@ class PubChargeData extends ChargeBaseData
'format'
=>
$this
->
format
,
//请求格式
'merchantNo'
=>
$this
->
merchantNo
,
//商户号
'signType'
=>
$this
->
signType
,
//加密类型
'signContent'
=>
json_encode
(
$signContent
,
JSON_UNESCAPED_UNICODE
),
'signContent'
=>
json_encode
(
$signContent
,
JSON_UNESCAPED_UNICODE
),
'key'
=>
$this
->
key
,
/* 公共请求参数 end */
];
...
...
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