Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
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
Muhammad Usman
PERFORMA_REPLICA
Commits
5fdf74ab
Commit
5fdf74ab
authored
Jul 25, 2019
by
nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
S43873914 # Client - Incoming Issues (raised by Client) #Add credit card not stored
parent
d5a4d5c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
StripeUtils.java
cmsWebApp/src/performa/utils/StripeUtils.java
+6
-7
No files found.
cmsWebApp/src/performa/utils/StripeUtils.java
View file @
5fdf74ab
...
@@ -90,7 +90,7 @@ public class StripeUtils
...
@@ -90,7 +90,7 @@ public class StripeUtils
{
{
LogMgr
.
log
(
LoggingArea
.
ALL
,
LogLevel
.
PROCESSING1
,
ex
,
"Error while creating a plan in stripe"
);
LogMgr
.
log
(
LoggingArea
.
ALL
,
LogLevel
.
PROCESSING1
,
ex
,
"Error while creating a plan in stripe"
);
throw
new
BusinessException
(
"Problem with creating plan
:
"
+
ex
.
getMessage
());
throw
new
BusinessException
(
"Problem with creating plan
.
"
+
ex
.
getMessage
());
}
}
}
}
...
@@ -117,7 +117,7 @@ public class StripeUtils
...
@@ -117,7 +117,7 @@ public class StripeUtils
}
}
public
static
Card
updateCardDetails
(
HiringTeam
hiringTeam
,
String
token
)
throws
FieldException
public
static
Card
updateCardDetails
(
HiringTeam
hiringTeam
,
String
token
)
throws
FieldException
,
BusinessException
{
{
try
try
{
{
...
@@ -139,14 +139,13 @@ public class StripeUtils
...
@@ -139,14 +139,13 @@ public class StripeUtils
LogMgr
.
log
(
LoggingArea
.
ALL
,
LogLevel
.
PROCESSING1
,
"Update card details in stripe, customer : "
,
customer
,
" card : "
,
card
);
LogMgr
.
log
(
LoggingArea
.
ALL
,
LogLevel
.
PROCESSING1
,
"Update card details in stripe, customer : "
,
customer
,
" card : "
,
card
);
return
card
;
return
card
;
}
}
catch
(
StripeException
ex
)
catch
(
StripeException
ex
)
{
{
LogMgr
.
log
(
LoggingArea
.
ALL
,
LogLevel
.
PROCESSING1
,
ex
,
"Error while updating a customer in stripe"
);
LogMgr
.
log
(
LoggingArea
.
ALL
,
LogLevel
.
PROCESSING1
,
ex
,
"Error while updating card details in stripe"
);
throw
new
BusinessException
(
"Problem with updating card details. "
+
ex
.
getMessage
());
}
}
return
null
;
}
}
...
@@ -160,7 +159,7 @@ public class StripeUtils
...
@@ -160,7 +159,7 @@ public class StripeUtils
}
}
catch
(
StripeException
ex
)
catch
(
StripeException
ex
)
{
{
LogMgr
.
log
(
LoggingArea
.
ALL
,
LogLevel
.
PROCESSING1
,
ex
,
"Error while
updating a customer
in stripe"
);
LogMgr
.
log
(
LoggingArea
.
ALL
,
LogLevel
.
PROCESSING1
,
ex
,
"Error while
retrieving card
in stripe"
);
}
}
return
null
;
return
null
;
...
...
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