Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haiyen-payment
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Giang Tran
haiyen-payment
Commits
eaaadb46
Commit
eaaadb46
authored
Aug 28, 2026
by
tdgiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
6e028fd5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
core.server.controller.js
app/controllers/core.server.controller.js
+2
-2
No files found.
app/controllers/core.server.controller.js
View file @
eaaadb46
...
...
@@ -1046,7 +1046,7 @@ exports.epayReturn = function (req, res, next) {
trxId
:
merTrxId
,
},
(
err
,
result
)
=>
{
if
(
err
||
(
result
&&
result
.
code
&&
result
.
code
===
"400"
)
)
{
if
(
err
||
!
result
||
!
result
.
data
||
result
.
code
===
"400"
)
{
return
renderPage
(
req
,
res
,
"frontend/paymentSuccess"
,
{
data
:
{
error_text
:
"Thanh toán thất bại!"
,
...
...
@@ -1113,7 +1113,7 @@ exports.epayIPN = function (req, res, next) {
}
ApiRequest
.
get
(
urlCheckInvoice
+
"/"
+
merTrxId
,
(
err
,
result
)
=>
{
if
(
err
||
(
result
&&
result
.
code
&&
result
.
code
===
"400"
)
)
{
if
(
err
||
!
result
||
!
result
.
data
||
result
.
code
===
"400"
)
{
return
res
.
status
(
400
)
.
json
({
code
:
"99"
,
data
:
"ERROR_TRX_ID_INCORRECT"
});
...
...
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