Subversion Repositories SmartDukaan

Rev

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

Rev 23568 Rev 28655
Line 28... Line 28...
28
		
28
		
29
		if(!checkWalletPayment(txnId)){
29
		if(!checkWalletPayment(txnId)){
30
			return PAYMENT_NOT_CREATED;
30
			return PAYMENT_NOT_CREATED;
31
		}
31
		}
32
		CommonPaymentService cps = new CommonPaymentService();
32
		CommonPaymentService cps = new CommonPaymentService();
33
		if(!cps.createPayment(userId, txnId, gatewayId)){
33
		/*if(!cps.createPayment(userId, txnId, gatewayId)){
34
			log.error("Error while creating the basic payment");
34
			log.error("Error while creating the basic payment");
35
			return PAYMENT_NOT_CREATED;
35
			return PAYMENT_NOT_CREATED;
36
		}
36
		}
37
		paymentId = cps.getPaymentId();
37
		paymentId = cps.getPaymentId();*/
38
 
38
		
39
		if(paymentOption != null){
39
		if(paymentOption != null){
40
			List<Attribute> attributes = new ArrayList<Attribute>();
40
			List<Attribute> attributes = new ArrayList<Attribute>();
41
			attributes.add(new Attribute(IPaymentService.PAYMENT_METHOD, paymentOption));
41
			attributes.add(new Attribute(IPaymentService.PAYMENT_METHOD, paymentOption));
42
			attributes.add(new Attribute(IPaymentService.PAYMENT_TYPE, paymentType));
42
			attributes.add(new Attribute(IPaymentService.PAYMENT_TYPE, paymentType));
43
			try {
43
			try {