Subversion Repositories SmartDukaan

Rev

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

Rev 6228 Rev 6390
Line 20... Line 20...
20
	
20
	
21
	public HdfcPaymentService() {
21
	public HdfcPaymentService() {
22
	
22
	
23
	}
23
	}
24
	
24
	
25
	public long createPayment(long currentCartId, long userId, long txnId, String paymentOption, long sourceId){
25
	public long createPayment(long userId, long txnId, String paymentOption, int gatewayId){
26
		log.info("Creating payment for the txn#: " + txnId + " for the user: " + userId + " for processing through HDFC");
26
		log.info("Creating payment for the txn#: " + txnId + " for the user: " + userId + " for processing through HDFC");
27
		CommonPaymentService cps = new CommonPaymentService();
27
		CommonPaymentService cps = new CommonPaymentService();
28
		if(!cps.createPayment(currentCartId, userId, txnId, gatewayId, sourceId)){
28
		if(!cps.createPayment(userId, txnId, gatewayId)){
29
			log.error("Error while creating the basic payment");
29
			log.error("Error while creating the basic payment");
30
			return PAYMENT_NOT_CREATED;
30
			return PAYMENT_NOT_CREATED;
31
		}else{
31
		}else{
32
			return initializePayment(cps.getPaymentId(), paymentOption);
32
			return initializePayment(cps.getPaymentId(), paymentOption);
33
		}
33
		}