Subversion Repositories SmartDukaan

Rev

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

Rev 19545 Rev 20112
Line 59... Line 59...
59
@Results({
59
@Results({
60
    @Result(name="shipping-redirect", type="redirectAction", params = {"actionName" , "shipping"}),
60
    @Result(name="shipping-redirect", type="redirectAction", params = {"actionName" , "shipping"}),
61
    @Result(name="proceed-to-pay-redirect", type="redirectAction", params = {"actionName" , "proceed-to-pay", "deliveryLocation", "${deliveryLocation}"}),
61
    @Result(name="proceed-to-pay-redirect", type="redirectAction", params = {"actionName" , "proceed-to-pay", "deliveryLocation", "${deliveryLocation}"}),
62
	@Result(name="ebs-pay-redirect", type="redirect", location="/ebs-pay/${paymentId}"),
62
	@Result(name="ebs-pay-redirect", type="redirect", location="/ebs-pay/${paymentId}"),
63
	@Result(name="payu-pay-redirect", type="redirect", location="/payu-pay/${paymentId}"),
63
	@Result(name="payu-pay-redirect", type="redirect", location="/payu-pay/${paymentId}"),
-
 
64
	@Result(name="hdfc-pay-redirect", type="redirect", location="/hdfc-pay/${paymentId}"),
64
	@Result(name="innoviti-pay-redirect", type="redirect", location="/innoviti-pay/${paymentId}"),
65
	@Result(name="innoviti-pay-redirect", type="redirect", location="/innoviti-pay/${paymentId}"),
65
	@Result(name="cod-redirect", type="redirect", location="/pay-success?paymentId=${paymentId}")
66
	@Result(name="cod-redirect", type="redirect", location="/pay-success?paymentId=${paymentId}")
66
})
67
})
67
public class OrderController extends BaseController {
68
public class OrderController extends BaseController {
68
	
69
	
Line 304... Line 305...
304
            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.
305
            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.
305
        } else if(paymentOption.equals(IPaymentService.PAYU_CC) || Utils.NET_BANKING_CODES_MAP.containsKey(paymentOption)){
306
        } else if(paymentOption.equals(IPaymentService.PAYU_CC) || Utils.NET_BANKING_CODES_MAP.containsKey(paymentOption)){
306
        	IPaymentService payuPaymentService = new PayuPaymentService();
307
        	IPaymentService payuPaymentService = new PayuPaymentService();
307
        	paymentId = payuPaymentService.createPayment(userinfo.getUserId(), txnId, paymentOption, gatewayId);
308
        	paymentId = payuPaymentService.createPayment(userinfo.getUserId(), txnId, paymentOption, gatewayId);
308
        	return "payu-pay-redirect";
309
        	return "payu-pay-redirect";
-
 
310
        }else if (paymentOption.equals("91000")){
-
 
311
        	IPaymentService payuPaymentService = new HdfcPaymentService();
-
 
312
        	paymentId = payuPaymentService.createPayment(userinfo.getUserId(), txnId, paymentOption, gatewayId);
-
 
313
        	return "hdfc-pay-redirect";
309
        }
314
        }
310
        
315
        
311
        IPaymentService ebsPaymentService = new EbsPaymentService();
316
        IPaymentService ebsPaymentService = new EbsPaymentService();
312
        paymentId = ebsPaymentService.createPayment(userinfo.getUserId(), txnId, paymentOption, 2);
317
        paymentId = ebsPaymentService.createPayment(userinfo.getUserId(), txnId, paymentOption, 2);
313
        if(paymentId == IPaymentService.PAYMENT_NOT_CREATED){
318
        if(paymentId == IPaymentService.PAYMENT_NOT_CREATED){