Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TimeOutAdmin
Project
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
TimeOut
TimeOutAdmin
Commits
a87da33a
Commit
a87da33a
authored
Dec 04, 2019
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
t : wallet payment issue
parent
5cf6017c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Api.php
application/controllers/Api.php
+3
-2
No files found.
application/controllers/Api.php
View file @
a87da33a
...
@@ -529,7 +529,7 @@ class Api extends CI_Controller {
...
@@ -529,7 +529,7 @@ class Api extends CI_Controller {
if
(
!
empty
(
$transaction_id
)
&&
!
empty
(
$last_id
)){
if
(
!
empty
(
$transaction_id
)
&&
!
empty
(
$last_id
)){
$this
->
Api_model
->
update_payment
(
$response
,
$transaction_id
,
$last_id
,
'1'
,
$eventid
);
$this
->
Api_model
->
update_payment
(
$response
,
$transaction_id
,
$last_id
,
'1'
,
$eventid
);
$customData
=
$this
->
txnManager
(
$eventid
,
array
(
'tnx_id'
=>
$
last_id
));
$customData
=
$this
->
txnManager
(
$eventid
,
array
(
'tnx_id'
=>
$
booking_id
,
'status'
=>
'1'
));
}
}
if
(
!
empty
(
$booking_id
)){
if
(
!
empty
(
$booking_id
)){
...
@@ -575,8 +575,9 @@ class Api extends CI_Controller {
...
@@ -575,8 +575,9 @@ class Api extends CI_Controller {
isset
(
$data
[
1
])
&&
!
empty
(
$data
[
1
])){
isset
(
$data
[
1
])
&&
!
empty
(
$data
[
1
])){
$last_id
=
$data
[
1
];
$last_id
=
$data
[
1
];
$eventid
=
$data
[
2
];
$eventid
=
$data
[
2
];
$booking_id
=
$data
[
3
];
$this
->
Api_model
->
update_payment
(
$response
,
''
,
$last_id
,
'0'
,
$eventid
);
$this
->
Api_model
->
update_payment
(
$response
,
''
,
$last_id
,
'0'
,
$eventid
);
$customData
=
$this
->
txnManager
(
$eventid
,
array
(
'tnx_id'
=>
$
last_id
));
$customData
=
$this
->
txnManager
(
$eventid
,
array
(
'tnx_id'
=>
$
booking_id
,
'status'
=>
'0'
));
$sql
=
"SELECT BOK.event_id FROM transaction AS TX
$sql
=
"SELECT BOK.event_id FROM transaction AS TX
INNER JOIN booking AS BOK ON (BOK.bookId=TX.booking_id)
INNER JOIN booking AS BOK ON (BOK.bookId=TX.booking_id)
...
...
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