Subversion Repositories SmartDukaan

Rev

Rev 20278 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20278 Rev 20337
Line 36... Line 36...
36
		paymentId = cps.getPaymentId();
36
		paymentId = cps.getPaymentId();
37
		
37
		
38
		if(paymentOption != null){
38
		if(paymentOption != null){
39
			List<Attribute> attributes = new ArrayList<Attribute>();
39
			List<Attribute> attributes = new ArrayList<Attribute>();
40
			attributes.add(new Attribute(IPaymentService.PAYMENT_METHOD, paymentOption));
40
			attributes.add(new Attribute(IPaymentService.PAYMENT_METHOD, paymentOption));
41
			attributes.add(new Attribute(IPaymentService.PAYMENT_METHOD, paymentType));
41
			attributes.add(new Attribute(IPaymentService.PAYMENT_TYPE, paymentType));
42
			try {
42
			try {
43
				PaymentClient paymentServiceClient = new PaymentClient();
43
				PaymentClient paymentServiceClient = new PaymentClient();
44
				paymentServiceClient.getClient().updatePaymentDetails(paymentId, null, null, null, null, null, null, null, null, PaymentStatus.INIT, null, attributes);
44
				paymentServiceClient.getClient().updatePaymentDetails(paymentId, null, null, null, null, null, null, null, null, PaymentStatus.INIT, null, attributes);
45
			} catch (Exception e) {
45
			} catch (Exception e) {
46
				log.error("Error while saving payment option attribute", e);
46
				log.error("Error while saving payment option attribute", e);