Subversion Repositories SmartDukaan

Rev

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

Rev 6050 Rev 6228
Line 240... Line 240...
240
        }
240
        }
241
        return redirectURL;
241
        return redirectURL;
242
    }
242
    }
243
 
243
 
244
    @Override
244
    @Override
245
	public String doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId) throws PaymentException, TException {
245
	public String doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone) throws PaymentException, TException {
246
        logger.info("Initializing HDFC payment with id: " + merchantPaymentId);
246
        logger.info("Initializing HDFC payment with id: " + merchantPaymentId);
247
        in.shop2020.payment.domain.Payment payment = paymentHandler.getPayment(merchantPaymentId);
247
        in.shop2020.payment.domain.Payment payment = paymentHandler.getPayment(merchantPaymentId);
248
        TransactionClient tc = new TransactionClient();
248
        TransactionClient tc = new TransactionClient();
249
        String redirectURL;
249
        String redirectURL;
250
        RechargeOrder rechargeOrder;
250
        RechargeOrder rechargeOrder;
251
        try {
251
        try {
252
            rechargeOrder = tc.getClient().getRechargeOrder(rechargeOrderId);
252
            rechargeOrder = tc.getClient().getRechargeOrder(rechargeOrderId);
253
            redirectURL = HdfcPaymentHandler.initializeHdfcPayment(payment, rechargeOrder, this);
253
            redirectURL = HdfcPaymentHandler.initializeHdfcPayment(payment, rechargeOrder, phone, this);
254
        } catch (Exception e) {
254
        } catch (Exception e) {
255
            throw new PaymentException(102, "Error while initiliazing payment. Check service log for more details.");
255
            throw new PaymentException(102, "Error while initiliazing payment. Check service log for more details.");
256
        }
256
        }
257
        
257
        
258
        return redirectURL;
258
        return redirectURL;