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
9f0cc905
Commit
9f0cc905
authored
Nov 13, 2019
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
t : token spelling mistake
parent
e2d6ad3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Api.php
application/controllers/Api.php
+4
-4
No files found.
application/controllers/Api.php
View file @
9f0cc905
...
...
@@ -355,15 +355,15 @@ class Api extends CI_Controller {
$saveCard
=
1
;
$savedCard
=
0
;
$cvv
=
$to
c
ken
=
$cardNo
=
$holder
=
$cardType
=
$expMonth
=
$expYear
=
''
;
$cvv
=
$token
=
$cardNo
=
$holder
=
$cardType
=
$expMonth
=
$expYear
=
''
;
if
(
!
empty
(
$cardData
)){
$cardData
=
$this
->
encrypt
(
$cardData
,
$this
->
local_key
,
$this
->
local_iv
);
if
(
empty
(
$cardData
)){
redirect
(
$redUrl
.
'failure'
);
}
else
if
(
isset
(
$cardData
[
'cvv'
])
&&
!
empty
(
$cardData
[
'cvv'
])
&&
isset
(
$cardData
[
'to
cken'
])
&&
!
empty
(
$cardData
[
'toc
ken'
])){
isset
(
$cardData
[
'to
ken'
])
&&
!
empty
(
$cardData
[
'to
ken'
])){
$cvv
=
$cardData
[
'cvv'
];
$to
cken
=
$cardData
[
'toc
ken'
];
$to
ken
=
$cardData
[
'to
ken'
];
$savedCard
=
1
;
}
else
if
(
isset
(
$cardData
[
'cvv'
])
&&
!
empty
(
$cardData
[
'cvv'
])
||
isset
(
$cardData
[
'cardType'
])
&&
!
empty
(
$cardData
[
'cardType'
])
||
...
...
@@ -395,7 +395,7 @@ class Api extends CI_Controller {
$pText
.=
'111111111111|'
.
$f_Name
.
'|'
.
$l_Name
.
'|'
.
$add1
.
'|'
.
$add2
.
'|'
.
$city
.
'|'
.
$state
.
'|'
.
$pincode
.
'|SA|'
.
$phone
.
'|34|344|34355344||'
;
if
(
$savedCard
==
1
){
$pText
.=
'00010000001|'
.
$cvv
.
'|'
.
$to
c
ken
.
'||'
;
$pText
.=
'00010000001|'
.
$cvv
.
'|'
.
$token
.
'||'
;
}
else
{
$pText
.=
'11111100000|'
.
$cardNo
.
'|'
.
$expMonth
.
'|'
.
$expYear
.
'|'
.
$cvv
.
'|'
.
$holder
.
'|'
.
$cardType
.
'||'
;
}
...
...
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