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 d1f81eee
authored
May 15, 2023
by
郑建康(PHP)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复慧收钱退费模块细节问题
1 parent
0eff903c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
examples/hsq/transferConfig.php
src/Common/Hsq/Data/RefundData.php
examples/hsq/transferConfig.php
View file @
d1f81ee
...
...
@@ -53,6 +53,8 @@ return [
// 'base_url' => 'https://paytest.baofoo.com/baofoo-fopay/pay', //测试接口上线时取消注释
/* demo end */
/* 猎电 begin */
// 'member_id'=> '1272710', //商户号
// 'terminal_id' => '80808', //终端号
...
...
@@ -61,6 +63,7 @@ return [
// 'private_key_pass' => 'Ldcharge888', //私钥密码
/* 猎电 end */
/* 猎维(智能充) begin */
'member_id'
=>
'1272712'
,
//商户号
'terminal_id'
=>
'80814'
,
//终端号
...
...
src/Common/Hsq/Data/RefundData.php
View file @
d1f81ee
...
...
@@ -15,8 +15,8 @@ class RefundData extends HsqBaseData
protected
function
checkDataParam
()
{
if
(
empty
(
$this
->
transNo
)
||
mb_strlen
(
$this
->
transNo
)
>
3
0
)
throw
new
PayException
(
'商户系统退款单号不能为空且长度不能超过30位'
);
// if (empty($this->origTransNo) || mb_strlen($this->origTransNo) > 30
) throw new PayException('原商户系统订单号不能为空且长度不能超过30位');
if
(
empty
(
$this
->
transNo
)
||
mb_strlen
(
$this
->
transNo
)
>
3
2
)
throw
new
PayException
(
'商户系统退款单号不能为空且长度不能超过30位'
);
if
(
empty
(
$this
->
origTransNo
)
||
mb_strlen
(
$this
->
origTransNo
)
>
32
)
throw
new
PayException
(
'原商户系统订单号不能为空且长度不能超过30位'
);
$totalFee
=
intval
(
$this
->
origOrderAmt
??
0
);
//订单总金额
$refundFee
=
intval
(
$this
->
orderAmt
??
0
);
//退款总金额
...
...
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