Subversion Repositories SmartDukaan

Rev

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

Rev 907 Rev 913
Line 161... Line 161...
161
		} catch (TException e1) {
161
		} catch (TException e1) {
162
			log.error("Thrift exception. Check payment id "+ merchantPaymentId);
162
			log.error("Thrift exception. Check payment id "+ merchantPaymentId);
163
			e1.printStackTrace();
163
			e1.printStackTrace();
164
		}
164
		}
165
		
165
		
166
		if(result.trim().equals(PaymentReturnStatus.CAPTURED.value())){
166
		if(result != null && result.trim().equals(PaymentReturnStatus.CAPTURED.value())){
167
			String message = "Payment successful";
167
			String message = "Payment successful";
168
			
168
			
169
			try {
169
			try {
170
				paymentClient.updatePaymentDetails(merchantPaymentId, paymentId, sessionId, result, message, tranId, auth, ref, errorNo, PaymentStatus.SUCCESS, null);
170
				paymentClient.updatePaymentDetails(merchantPaymentId, paymentId, sessionId, result, message, tranId, auth, ref, errorNo, PaymentStatus.SUCCESS, null);
171
			} catch (PaymentException e1) {
171
			} catch (PaymentException e1) {