Subversion Repositories SmartDukaan

Rev

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

Rev 13521 Rev 18057
Line 291... Line 291...
291
 
291
 
292
        if(paymentOption.equals(IPaymentService.HDFC_VISA))
292
        if(paymentOption.equals(IPaymentService.HDFC_VISA))
293
            paymentOption = IPaymentService.EBS_VISA;
293
            paymentOption = IPaymentService.EBS_VISA;
294
        else if(paymentOption.equals(IPaymentService.HDFC_MASTERCARD_DEBIT) || paymentOption.equals(IPaymentService.HDFC_MASTERCARD_CREDIT))
294
        else if(paymentOption.equals(IPaymentService.HDFC_MASTERCARD_DEBIT) || paymentOption.equals(IPaymentService.HDFC_MASTERCARD_CREDIT))
295
            paymentOption = IPaymentService.EBS_MASTERCARD;
295
            paymentOption = IPaymentService.EBS_MASTERCARD;
296
        else if(paymentOption.equals(IPaymentService.HDFC_VISA_ELECTRON))
296
        else if(paymentOption.equals(IPaymentService.HDFC_VISA_ELECTRON)) {
297
            paymentOption = null;           //Since we don't know the bank's name in this case, we'll let the user select the bank on the EBS page.
297
            paymentOption = null;           //Since we don't know the bank's name in this case, we'll let the user select the bank on the EBS page.
298
        
-
 
299
        if(paymentOption.equals(IPaymentService.PAYU_CC) || Utils.NET_BANKING_CODES_MAP.containsKey(paymentOption)){
298
        } else if(paymentOption.equals(IPaymentService.PAYU_CC) || Utils.NET_BANKING_CODES_MAP.containsKey(paymentOption)){
300
        	IPaymentService payuPaymentService = new PayuPaymentService();
299
        	IPaymentService payuPaymentService = new PayuPaymentService();
301
        	paymentId = payuPaymentService.createPayment(userinfo.getUserId(), txnId, paymentOption, gatewayId);
300
        	paymentId = payuPaymentService.createPayment(userinfo.getUserId(), txnId, paymentOption, gatewayId);
302
        	return "payu-pay-redirect";
301
        	return "payu-pay-redirect";
303
        }
302
        }
304
        String bankCode = Utils.NET_BANKING_CODES_MAP.get(paymentOption);
-
 
305
        
-
 
306
        
303
        
307
        IPaymentService ebsPaymentService = new EbsPaymentService();
304
        IPaymentService ebsPaymentService = new EbsPaymentService();
308
        paymentId = ebsPaymentService.createPayment(userinfo.getUserId(), txnId, paymentOption, 2);
305
        paymentId = ebsPaymentService.createPayment(userinfo.getUserId(), txnId, paymentOption, 2);
309
        if(paymentId == IPaymentService.PAYMENT_NOT_CREATED){
306
        if(paymentId == IPaymentService.PAYMENT_NOT_CREATED){
310
            addActionError("We are experiencing some problems. Please try later.");
307
            addActionError("We are experiencing some problems. Please try later.");