Subversion Repositories SmartDukaan

Rev

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

Rev 9338 Rev 10968
Line 245... Line 245...
245
		        paymentOption.equals(IPaymentService.HDFC_VISA) || paymentOption.equals(IPaymentService.HDFC_VISA_ELECTRON)) {
245
		        paymentOption.equals(IPaymentService.HDFC_VISA) || paymentOption.equals(IPaymentService.HDFC_VISA_ELECTRON)) {
246
            // User has selected Visa or MasterCard
246
            // User has selected Visa or MasterCard
247
            IPaymentService hdfcPaymentService = new HdfcPaymentService();
247
            IPaymentService hdfcPaymentService = new HdfcPaymentService();
248
            paymentId = hdfcPaymentService.createPayment(userinfo.getUserId(), txnId, paymentOption, 1);
248
            paymentId = hdfcPaymentService.createPayment(userinfo.getUserId(), txnId, paymentOption, 1);
249
            if (paymentId == IPaymentService.PAYMENT_NOT_CREATED) {
249
            if (paymentId == IPaymentService.PAYMENT_NOT_CREATED) {
-
 
250
            	//TODO:Update order gatewayTxnStatus in case its not processed using txnId
250
                log.error("Unable to process payment through HDFC. Falling through to EBS.");
251
                log.error("Unable to process payment through HDFC. Falling through to EBS.");
251
            } else {
252
            } else {
252
                this.redirectURL = ((HdfcPaymentService)hdfcPaymentService).getRedirectUrl();
253
                this.redirectURL = ((HdfcPaymentService)hdfcPaymentService).getRedirectUrl();
253
                log.info(this.redirectURL);
254
                log.info(this.redirectURL);
254
                return "success";
255
                return "success";