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
47f71938
Commit
47f71938
authored
5 years ago
by
Tobin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 'dev_production'
dummy changes in remove card See merge request
!312
parents
f7a11e39
216297a3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
Api.php
application/controllers/Api.php
+7
-6
No files found.
application/controllers/Api.php
View file @
47f71938
...
@@ -818,15 +818,16 @@ class Api extends CI_Controller {
...
@@ -818,15 +818,16 @@ class Api extends CI_Controller {
curl_setopt
(
$ch
,
CURLOPT_HTTPHEADER
,
array
(
'Content-Type: application/x-www-form-urlencoded'
));
curl_setopt
(
$ch
,
CURLOPT_HTTPHEADER
,
array
(
'Content-Type: application/x-www-form-urlencoded'
));
$result
=
curl_exec
(
$ch
);
$result
=
curl_exec
(
$ch
);
if
(
empty
(
$result
)){
if
(
!
empty
(
$result
)){
$this
->
errorResponse
(
'892'
,
'Invalid Card Data'
);
// $this->errorResponse('892','Invalid Card Data');
$this
->
response
(
array
(
'message'
=>
'SUCCESS'
));
}
}
$resp
=
$this
->
decryptePayData
(
$merchant_iv
,
$merchant_key
,
$result
);
//
$resp = $this->decryptePayData($merchant_iv,$merchant_key,$result);
if
(
empty
(
$resp
)
||
isset
(
$resp
->
status
)
||
$resp
->
status
!=
'SUCCESS'
){
//
if(empty($resp) || isset($resp->status) || $resp->status != 'SUCCESS'){
$this
->
errorResponse
(
'893'
,
'No Card Found'
);
$this
->
errorResponse
(
'893'
,
'No Card Found'
);
}
//
}
$this
->
response
(
array
(
'message'
=>
$resp
->
statusMessage
));
//
$this->response(array('message'=>$resp->statusMessage));
}
}
function
hotelBooking
(){
function
hotelBooking
(){
...
...
This diff is collapsed.
Click to expand it.
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