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
c9fa4fc6
Commit
c9fa4fc6
authored
Aug 13, 2021
by
Antonio.Suerte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Help2Pay Migration [Withdrawal Webhook Validation Enhancement]
parent
435afa02
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
52 deletions
+50
-52
H2PWithdrawalWebhook.php
api/H2PWithdrawalWebhook.php
+50
-52
No files found.
api/H2PWithdrawalWebhook.php
View file @
c9fa4fc6
...
...
@@ -119,7 +119,6 @@ class H2PWithdrawalWebhook extends System {
$bankCode
=
$this
->
getColumnData
(
$result
,
COLUMN_RECEIPT_BANK_NAME
);
$language
=
$this
->
getColumnData
(
$result
,
COLUMN_LANGUAGE
);
if
(
strcasecmp
(
$this
->
transactionKey
,
$this
->
getColumnData
(
$result
,
"api_key"
))
===
0
){
$param
=
[];
if
(
$this
->
memberCode
==
$memberCode
){
...
...
@@ -154,21 +153,20 @@ class H2PWithdrawalWebhook extends System {
VAR_CS_MAIL_ADDRESS
);
$this
->
logEvent
(
"nfail s
tatus:
\r\n\r\n
{
$response
}
"
,
VAL_INT_2
);
$this
->
logEvent
(
"nFailed S
tatus:
\r\n\r\n
{
$response
}
"
,
VAL_INT_2
);
break
;
default
:
//error, status not valid
$this
->
logEvent
(
"Error status code invalid
:
\r\n\r\n
{
$response
}
\r\n
{
$this
->
status
}
"
,
VAL_INT_2
);
$this
->
logEvent
(
"Invalid Status Code
:
\r\n\r\n
{
$response
}
\r\n
{
$this
->
status
}
"
,
VAL_INT_2
);
break
;
}
}
else
{
//error, member code not valid
$this
->
logEvent
(
"Error member code invalid:
{
$
memberCode
}
"
,
VAL_INT_2
);
$this
->
logEvent
(
"Invalid Member Code:
{
$this
->
memberCode
}
"
,
VAL_INT_2
);
}
}
else
{
//error, status not valid
$this
->
logEvent
(
"Key invalid:
\r\n\r\n
{
$response
}
"
,
VAL_INT_2
);
}
//error, transaction num not valid
$this
->
logEvent
(
"Invalid Transaction Number:
\r\n\r\n
{
$this
->
transactionNum
}
"
,
VAL_INT_2
);
}
}
}
...
...
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