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
9c20d48b
Commit
9c20d48b
authored
Sep 02, 2021
by
Antonio.Suerte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remittance API Misleading Status Code Fix
parent
8fad5972
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
MoneyRequest.php
api/MoneyRequest.php
+10
-1
No files found.
api/MoneyRequest.php
View file @
9c20d48b
...
...
@@ -174,6 +174,11 @@ class MoneyRequest extends System {
$sha
=
hash
(
"sha256"
,
$checkSignature
);
if
(
$this
->
signature
!=
$sha
){
$this
->
result
[
"combination"
]
=
[
"real_raw"
=>
$checkSignature
,
"real_signature"
=>
$sha
];
$this
->
result
[
PARAM_RESULT
]
=
sprintf
(
"%02d"
,
VAL_INT_90
);
$this
->
result
[
PARAM_STATUS
]
=
"REJECTED"
;
}
else
{
...
...
@@ -189,7 +194,7 @@ class MoneyRequest extends System {
}
else
{
$format
=
sprintf
(
"%02d"
,
$this
->
ctransfer
[
PARAM_RESULT
]);
$this
->
result
[
PARAM_RESULT
]
=
sprintf
(
"%02d"
,
$this
->
result
[
PARAM_RESULT
])
;
$this
->
result
[
PARAM_RESULT
]
=
$format
;
$this
->
result
[
PARAM_STATUS
]
=
"ERROR(CODE:
{
$format
}
)"
;
}
}
...
...
@@ -280,6 +285,10 @@ class MoneyRequest extends System {
'[REMITTANCE_CALLBACK_RESULT]'
.
json_encode
(
$this
->
result
)
]);
if
(
isset
(
$this
->
result
[
"combination"
])){
unset
(
$this
->
result
[
"combination"
]);
}
echo
json_encode
(
$this
->
result
);
}
...
...
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