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 fc8bf926
authored
Sep 15, 2020
by
赵成彬(PHP)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
1 parent
60cc11a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
examples/ltfpay/barCharge.php
src/Common/LTFpay/Data/Charge/ChargeBaseData.php
examples/ltfpay/barCharge.php
View file @
fc8bf92
...
@@ -25,12 +25,13 @@ $config = [
...
@@ -25,12 +25,13 @@ $config = [
$payData
=
[
$payData
=
[
'out_trade_no'
=>
'2019062017085196425851101912'
,
'out_trade_no'
=>
'2019062017085196425851101912'
,
'refund_no'
=>
'2019062017085196425851101912'
,
'refund_no'
=>
'2019062017085196425851101912'
,
'total_fee'
=>
0.9
];
];
//2019062017085196425851101985
//2019062017085196425851101985
try
{
try
{
$ret
=
C
lose
::
run
(
Config
::
LTF_CHARG
E
,
$config
,
$payData
);
$ret
=
C
harge
::
run
(
Config
::
LTF_CHANNEL_LIT
E
,
$config
,
$payData
);
}
catch
(
PayException
$e
){
}
catch
(
PayException
$e
){
exit
(
$e
->
errorMessage
());
exit
(
$e
->
errorMessage
());
}
}
...
...
src/Common/LTFpay/Data/Charge/ChargeBaseData.php
View file @
fc8bf92
...
@@ -17,7 +17,7 @@ abstract class ChargeBaseData extends LTFBaseData{
...
@@ -17,7 +17,7 @@ abstract class ChargeBaseData extends LTFBaseData{
protected
function
checkDataParam
(){
protected
function
checkDataParam
(){
// TODO: Implement checkDataParam() method.
// TODO: Implement checkDataParam() method.
// 检查金额不能低于0.01
// 检查金额不能低于0.01
if
(
$this
->
total_fee
<
1
)
{
if
(
$this
->
total_fee
<
0.0
1
)
{
throw
new
PayException
(
'支付金额不能低于 '
.
Config
::
PAY_MIN_FEE
.
' 元'
);
throw
new
PayException
(
'支付金额不能低于 '
.
Config
::
PAY_MIN_FEE
.
' 元'
);
}
}
...
...
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