Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
iwl-live
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anthony.Suerte
iwl-live
Commits
da1ca760
Commit
da1ca760
authored
Oct 28, 2022
by
Antonio.Suerte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Payment API Restriction Enhancement
parent
b9cde9cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
7 deletions
+21
-7
model.php
logic/settlement/model.php
+21
-7
No files found.
logic/settlement/model.php
View file @
da1ca760
...
...
@@ -228,19 +228,33 @@ class SettlementModelClass extends ModelClassEx {
$apiSignature
=
$this
->
getRowData
(
$this
->
getAPISignatureCommon
(
$this
->
pNum
));
$displayTransactionDetails
=
true
;
if
(
!
$this
->
checkAccountStatus
(
$this
->
getColumnData
(
$rs
,
PARAM_USER_ACCOUNT
),
VAR_TRANSACTION_TRANSFER_WITHDRAW
))
{
$invalid
[
"SUSP01"
]
=
$this
->
getMessage
(
ERROR
,
'E_ERROR_UNABLE_TO_PROCESS_REQUEST'
,
array
());;
$senderAccount
=
$this
->
getColumnData
(
$rs
,
PARAM_USER_ACCOUNT
);
$senderObject
=
$this
->
getRowData
(
$this
->
getAccountCommon
(
$senderAccount
));
if
(
!
$this
->
checkAccountStatus
(
$senderAccount
,
VAR_TRANSACTION_TRANSFER_WITHDRAW
))
{
if
(
$this
->
getColumnData
(
$senderObject
,
PARAM_STATUS
)
!=
7
)
$invalid
[
"SUSP01"
]
=
$this
->
getMessage
(
ERROR
,
'E_ERROR_UNABLE_TO_PROCESS_REQUEST'
,
array
());
}
if
(
$this
->
getColumnData
(
$apiSignature
,
PARAM_USER_ACCOUNT
)
!=
$this
->
getColumnData
(
$rs
,
PARAM_USER_ACCOUNT
)){
$this
->
fromAccount
=
$this
->
getColumnData
(
$rs
,
PARAM_USER_ACCOUNT
);
if
(
$this
->
getColumnData
(
$apiSignature
,
PARAM_USER_ACCOUNT
)
!=
$senderAccount
){
$this
->
fromAccount
=
$senderAccount
;
$this
->
userAccount
=
$this
->
getColumnData
(
$apiSignature
,
PARAM_USER_ACCOUNT
);
$this
->
setData
();
$amount
=
$this
->
currencyToInt
(
$this
->
debitAmount
,
$this
->
debitCurrency
);
if
(
!
$this
->
checkWithdrawLimit
(
$senderAccount
,
$this
->
debitCurrency
,
$amount
)){
if
(
$this
->
getColumnData
(
$senderObject
,
PARAM_STATUS
)
!=
7
){
$invalid
[
"NOTVF01"
]
=
$this
->
getMessage
(
ERROR
,
"E_LIMIT_WITHDRAW"
,
array
());
$this
->
accessModifyCommon
(
'INSERT_LOG_POST'
,
array
(
$this
->
getColumnData
(
$_SERVER
,
"REMOTE_ADDR"
),
$this
->
pNum
,
NO_STRING
,
"[NOT_VERIFIED] Needs KYC Verification (
{
$senderAccount
}
)"
));
}
}
if
(
$this
->
balance
<
(
$this
->
debitAmount
+
$this
->
getFeeEx
()))
{
$invalid
[
"OE04"
]
=
$this
->
getMessage
(
ERROR
,
'E_INSUFFICIENT_FUNDS'
,
array
(
$this
->
debitCurrency
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment