Subversion Repositories SmartDukaan

Rev

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

Rev 13373 Rev 13425
Line 8... Line 8...
8
import in.shop2020.payments.Payment;
8
import in.shop2020.payments.Payment;
9
import in.shop2020.payments.PaymentException;
9
import in.shop2020.payments.PaymentException;
10
import in.shop2020.serving.services.EbsPaymentService;
10
import in.shop2020.serving.services.EbsPaymentService;
11
import in.shop2020.serving.services.HdfcPaymentService;
11
import in.shop2020.serving.services.HdfcPaymentService;
12
import in.shop2020.serving.services.IPaymentService;
12
import in.shop2020.serving.services.IPaymentService;
-
 
13
import in.shop2020.serving.utils.Utils;
13
import in.shop2020.thrift.clients.PaymentClient;
14
import in.shop2020.thrift.clients.PaymentClient;
14
import in.shop2020.thrift.clients.TransactionClient;
15
import in.shop2020.thrift.clients.TransactionClient;
15
import in.shop2020.thrift.clients.UserClient;
16
import in.shop2020.thrift.clients.UserClient;
16
 
17
 
17
import org.apache.log4j.Logger;
18
import org.apache.log4j.Logger;
Line 162... Line 163...
162
        else if(paymentOption.equals(IPaymentService.HDFC_MASTERCARD_DEBIT) || paymentOption.equals(IPaymentService.HDFC_MASTERCARD_CREDIT))
163
        else if(paymentOption.equals(IPaymentService.HDFC_MASTERCARD_DEBIT) || paymentOption.equals(IPaymentService.HDFC_MASTERCARD_CREDIT))
163
            paymentOption = IPaymentService.EBS_MASTERCARD;
164
            paymentOption = IPaymentService.EBS_MASTERCARD;
164
        else if(paymentOption.equals(IPaymentService.HDFC_VISA_ELECTRON))
165
        else if(paymentOption.equals(IPaymentService.HDFC_VISA_ELECTRON))
165
            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.
166
            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.
166
        
167
        
167
        if(paymentOption.equals(IPaymentService.PAYU_CC)){
168
        if(paymentOption.equals(IPaymentService.PAYU_CC) || Utils.NET_BANKING_CODES_MAP.containsKey(paymentOption)){
168
        	paymentOption = IPaymentService.PAYU_CC;
-
 
169
        	PayuPaymentService payuPaymentService = new PayuPaymentService();
169
        	PayuPaymentService payuPaymentService = new PayuPaymentService();
170
        	paymentId = payuPaymentService.createPayment(rechargeOrder, paymentOption);
170
        	paymentId = payuPaymentService.createPayment(rechargeOrder, paymentOption);
171
        	this.redirectURL = "payu-pay/" + paymentId + "/edit?phone=" + phone;
171
        	this.redirectURL = "payu-pay/" + paymentId + "/edit?phone=" + phone;
172
        	return "success";
172
        	return "success";
173
        }
173
        }