| Line 18... |
Line 18... |
| 18 |
import in.shop2020.serving.services.HdfcPaymentService;
|
18 |
import in.shop2020.serving.services.HdfcPaymentService;
|
| 19 |
import in.shop2020.serving.services.IPaymentService;
|
19 |
import in.shop2020.serving.services.IPaymentService;
|
| 20 |
import in.shop2020.serving.services.InnovitiPaymentService;
|
20 |
import in.shop2020.serving.services.InnovitiPaymentService;
|
| 21 |
import in.shop2020.serving.services.PayuPaymentService;
|
21 |
import in.shop2020.serving.services.PayuPaymentService;
|
| 22 |
import in.shop2020.serving.utils.DesEncrypter;
|
22 |
import in.shop2020.serving.utils.DesEncrypter;
|
| - |
|
23 |
import in.shop2020.serving.utils.Utils;
|
| 23 |
import in.shop2020.thrift.clients.InventoryClient;
|
24 |
import in.shop2020.thrift.clients.InventoryClient;
|
| 24 |
import in.shop2020.thrift.clients.TransactionClient;
|
25 |
import in.shop2020.thrift.clients.TransactionClient;
|
| 25 |
import in.shop2020.thrift.clients.UserClient;
|
26 |
import in.shop2020.thrift.clients.UserClient;
|
| 26 |
import in.shop2020.utils.FedExShipAccountInfo;
|
27 |
import in.shop2020.utils.FedExShipAccountInfo;
|
| 27 |
|
28 |
|
| Line 293... |
Line 294... |
| 293 |
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))
|
| 294 |
paymentOption = IPaymentService.EBS_MASTERCARD;
|
295 |
paymentOption = IPaymentService.EBS_MASTERCARD;
|
| 295 |
else if(paymentOption.equals(IPaymentService.HDFC_VISA_ELECTRON))
|
296 |
else if(paymentOption.equals(IPaymentService.HDFC_VISA_ELECTRON))
|
| 296 |
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.
|
| 297 |
|
298 |
|
| 298 |
if(paymentOption.equals(IPaymentService.PAYU_CC)){
|
299 |
if(paymentOption.equals(IPaymentService.PAYU_CC) || Utils.NET_BANKING_CODES_MAP.containsKey(paymentOption)){
|
| 299 |
paymentOption = IPaymentService.PAYU_CC;
|
- |
|
| 300 |
IPaymentService payuPaymentService = new PayuPaymentService();
|
300 |
IPaymentService payuPaymentService = new PayuPaymentService();
|
| 301 |
paymentId = payuPaymentService.createPayment(userinfo.getUserId(), txnId, paymentOption, gatewayId);
|
301 |
paymentId = payuPaymentService.createPayment(userinfo.getUserId(), txnId, paymentOption, gatewayId);
|
| 302 |
return "payu-pay-redirect";
|
302 |
return "payu-pay-redirect";
|
| 303 |
}
|
303 |
}
|
| - |
|
304 |
String bankCode = Utils.NET_BANKING_CODES_MAP.get(paymentOption);
|
| - |
|
305 |
|
| 304 |
|
306 |
|
| 305 |
IPaymentService ebsPaymentService = new EbsPaymentService();
|
307 |
IPaymentService ebsPaymentService = new EbsPaymentService();
|
| 306 |
paymentId = ebsPaymentService.createPayment(userinfo.getUserId(), txnId, paymentOption, 2);
|
308 |
paymentId = ebsPaymentService.createPayment(userinfo.getUserId(), txnId, paymentOption, 2);
|
| 307 |
if(paymentId == IPaymentService.PAYMENT_NOT_CREATED){
|
309 |
if(paymentId == IPaymentService.PAYMENT_NOT_CREATED){
|
| 308 |
addActionError("We are experiencing some problems. Please try later.");
|
310 |
addActionError("We are experiencing some problems. Please try later.");
|