Subversion Repositories SmartDukaan

Rev

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

Rev 681 Rev 689
Line 58... Line 58...
58
		try {
58
		try {
59
			UserContextServiceClient userServiceClient = new UserContextServiceClient();
59
			UserContextServiceClient userServiceClient = new UserContextServiceClient();
60
			in.shop2020.model.v1.user.UserContextService.Client userClient = userServiceClient.getClient();
60
			in.shop2020.model.v1.user.UserContextService.Client userClient = userServiceClient.getClient();
61
			
61
			
62
			userClient.addAddressToCart(currentCartId, addressId);
62
			userClient.addAddressToCart(currentCartId, addressId);
63
			Long txn_id = userClient.commitCart(currentCartId);
63
			Long txn_id = userClient.createOrders(currentCartId);
64
			
64
			
65
			TransactionServiceClient tsc = new TransactionServiceClient();
65
			TransactionServiceClient tsc = new TransactionServiceClient();
66
			orders = tsc.getClient().getOrdersForTransaction(txn_id);
66
			orders = tsc.getClient().getOrdersForTransaction(txn_id);
67
			
67
			
68
			long newCartId = userClient.getUserById(userinfo.getUserId()).getActiveCartId();
68
			long newCartId = userClient.getUserById(userinfo.getUserId()).getActiveCartId();