| Line 273... |
Line 273... |
| 273 |
public String initializeHdfcEmiPayment(long merchantPaymentId, boolean isMobile) throws PaymentException, TException {
|
273 |
public String initializeHdfcEmiPayment(long merchantPaymentId, boolean isMobile) throws PaymentException, TException {
|
| 274 |
logger.info("Initializing HDFC payment with id: " + merchantPaymentId);
|
274 |
logger.info("Initializing HDFC payment with id: " + merchantPaymentId);
|
| 275 |
in.shop2020.payment.domain.Payment payment = paymentHandler.getPayment(merchantPaymentId);
|
275 |
in.shop2020.payment.domain.Payment payment = paymentHandler.getPayment(merchantPaymentId);
|
| 276 |
String redirectURL;
|
276 |
String redirectURL;
|
| 277 |
try {
|
277 |
try {
|
| 278 |
redirectURL = HdfcEmiPaymentHandler.initializeHdfcPayment(payment, this);
|
278 |
redirectURL = HdfcEmiPaymentHandler.initializeHdfcPayment(payment, this, isMobile);
|
| 279 |
} catch (Exception e) {
|
279 |
} catch (Exception e) {
|
| 280 |
throw new PaymentException(102, "Error while initiliazing payment. Check service log for more details.");
|
280 |
throw new PaymentException(102, "Error while initiliazing payment. Check service log for more details.");
|
| 281 |
}
|
281 |
}
|
| 282 |
return redirectURL;
|
282 |
return redirectURL;
|
| 283 |
}
|
283 |
}
|