Subversion Repositories SmartDukaan

Rev

Rev 719 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 719 Rev 762
Line 46... Line 46...
46
		} catch (Exception e) {
46
		} catch (Exception e) {
47
			Logger.log("Could not initialize the paymentservice client", this);
47
			Logger.log("Could not initialize the paymentservice client", this);
48
		}
48
		}
49
	}
49
	}
50
	
50
	
51
	public String index() throws IOException, SecurityException, PaymentException, TException, TransactionServiceException{
51
	public String index() throws IOException, SecurityException, PaymentException, TException, TransactionServiceException, ShoppingCartException{
52
		this.message = "Payment completed successfully.";
52
		this.message = "Payment completed successfully.";
53
		System.out.println("Inside the index method of pay response");
53
		System.out.println("Inside the index method of pay response");
54
    	if(!userinfo.isLoggedIn()){
54
    	if(!userinfo.isLoggedIn()){
55
    		System.out.println("Inside user is not logged in");
55
    		System.out.println("Inside user is not logged in");
56
    		setRedirectUrl();
56
    		setRedirectUrl();
Line 61... Line 61...
61
		
61
		
62
		long txnId = pclient.getClient().getPayment(merchantPaymentId).getMerchantTxnId();
62
		long txnId = pclient.getClient().getPayment(merchantPaymentId).getMerchantTxnId();
63
				
63
				
64
		orders = tsc.getClient().getOrdersForTransaction(txnId);
64
		orders = tsc.getClient().getOrdersForTransaction(txnId);
65
		
65
		
66
		
-
 
67
		this.userinfo.setTotalItems(Utils.getNumberOfItemsInCart(userinfo.getCartId()));
66
		int totalItems = usc.getClient().getCart(userinfo.getCartId()).getLinesSize();
-
 
67
		userinfo.setTotalItems(totalItems);
-
 
68
 
68
		return "index";
69
		return "index";
69
	}
70
	}
70
	
71
	
71
	
72
	
72
	
73