Subversion Repositories SmartDukaan

Rev

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

Rev 2118 Rev 2145
Line 67... Line 67...
67
			addActionError("We are experiencing some problems. Please try later.");
67
			addActionError("We are experiencing some problems. Please try later.");
68
			return "shipping-redirect";
68
			return "shipping-redirect";
69
		}
69
		}
70
		
70
		
71
		Order order = null;
71
		Order order = null;
72
		LineItem lineItem = null;
-
 
73
		try {
72
		try {
74
			long txnId = payment.getMerchantTxnId();
73
			long txnId = payment.getMerchantTxnId();
75
			TransactionServiceClient transactionServiceClient = new TransactionServiceClient();
74
			TransactionServiceClient transactionServiceClient = new TransactionServiceClient();
76
			in.shop2020.model.v1.order.TransactionService.Client txnClient = transactionServiceClient.getClient();
75
			in.shop2020.model.v1.order.TransactionService.Client txnClient = transactionServiceClient.getClient();
77
			Transaction transaction = txnClient.getTransaction(txnId);
76
			Transaction transaction = txnClient.getTransaction(txnId);
78
			order = transaction.getOrders().get(0);
77
			order = transaction.getOrders().get(0);
79
			lineItem = order.getLineitems().get(0);
-
 
80
		} catch (Exception e) {
78
		} catch (Exception e) {
81
			log.error("Error while getting transaction information", e);
79
			log.error("Error while getting transaction information", e);
82
			addActionError("We are experiencing some problems. Please try later.");
80
			addActionError("We are experiencing some problems. Please try later.");
83
			return "shipping-redirect";
81
			return "shipping-redirect";
84
		}
82
		}