Subversion Repositories SmartDukaan

Rev

Rev 3185 | Rev 3378 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3185 Rev 3209
Line 7... Line 7...
7
import in.shop2020.model.v1.user.ShoppingCartException;
7
import in.shop2020.model.v1.user.ShoppingCartException;
8
import in.shop2020.model.v1.user.UserAffiliateException;
8
import in.shop2020.model.v1.user.UserAffiliateException;
9
import in.shop2020.payments.PaymentException;
9
import in.shop2020.payments.PaymentException;
10
import in.shop2020.serving.interceptors.TrackingInterceptor;
10
import in.shop2020.serving.interceptors.TrackingInterceptor;
11
import in.shop2020.serving.utils.FormattingUtils;
11
import in.shop2020.serving.utils.FormattingUtils;
-
 
12
import in.shop2020.serving.utils.Utils;
12
import in.shop2020.thrift.clients.PaymentClient;
13
import in.shop2020.thrift.clients.PaymentClient;
13
import in.shop2020.thrift.clients.TransactionClient;
14
import in.shop2020.thrift.clients.TransactionClient;
14
import in.shop2020.thrift.clients.UserClient;
15
import in.shop2020.thrift.clients.UserClient;
15
import in.shop2020.utils.DataLogger;
16
import in.shop2020.utils.DataLogger;
16
 
17
 
Line 90... Line 91...
90
			log.error("Shopping cart service exception. Payment id is" + merchantPaymentId, e);
91
			log.error("Shopping cart service exception. Payment id is" + merchantPaymentId, e);
91
		} catch (UserAffiliateException e) {
92
		} catch (UserAffiliateException e) {
92
		    log.error("Affiliate service exception. Payment id is" + merchantPaymentId, e);
93
		    log.error("Affiliate service exception. Payment id is" + merchantPaymentId, e);
93
        }
94
        }
94
		
95
		
95
		DataLogger.logData(EventType.PAYMENT_SUCCESS, getSessionId(), userinfo.getUserId(), userinfo.getEmail(), Long.toString(merchantPaymentId));
96
		DataLogger.logData(EventType.PAYMENT_SUCCESS, getSessionId(), userinfo.getUserId(), 
-
 
97
		        userinfo.getEmail(), Long.toString(merchantPaymentId), Utils.getItemIdStringFromOrders(orders));
96
		
98
		
97
		return "index";
99
		return "index";
98
	}
100
	}
99
	
101
	
100
	public String formatPrice(double price)    {
102
	public String formatPrice(double price)    {