Commit 5fdf74ab by nilu

S43873914 # Client - Incoming Issues (raised by Client) #Add credit card not stored

parent d5a4d5c8
...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment