Subversion Repositories SmartDukaan

Rev

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

Rev 9200 Rev 9201
Line 534... Line 534...
534
			if(exit){
534
			if(exit){
535
				continue;
535
				continue;
536
			}
536
			}
537
			txn.setOrders(orderlist);
537
			txn.setOrders(orderlist);
538
			try {
538
			try {
539
				transaction_client = new TransactionClient().getClient();
539
				//transaction_client = new TransactionClient().getClient();
540
				transactionId =  String.valueOf(transaction_client.createTransaction(txn));
540
				transactionId =  String.valueOf(transaction_client.createTransaction(txn));
541
				logger.info("Transaction id is : " + transactionId);
541
				logger.info("Transaction id is : " + transactionId);
542
			} catch (TransactionServiceException e) {
542
			} catch (TransactionServiceException e) {
543
				logger.error(orderId+" "+subOrderId + " Could not create transaction " , e);
543
				logger.error(orderId+" "+subOrderId + " Could not create transaction " , e);
544
				sb.append(orderId+" "+subOrderId + " Could not create transaction" +"\n");
544
				sb.append(orderId+" "+subOrderId + " Could not create transaction" +"\n");
Line 604... Line 604...
604
					in.shop2020.model.v1.order.Attribute attribute = new in.shop2020.model.v1.order.Attribute();
604
					in.shop2020.model.v1.order.Attribute attribute = new in.shop2020.model.v1.order.Attribute();
605
					attribute.setName("Buyer Name");
605
					attribute.setName("Buyer Name");
606
					attribute.setValue(buyerName);
606
					attribute.setValue(buyerName);
607
					attributeList.add(attribute);
607
					attributeList.add(attribute);
608
					try {
608
					try {
609
						if(transaction_client == null){
609
						/*if(transaction_client == null){
610
							transaction_client = new TransactionClient().getClient();
610
							transaction_client = new TransactionClient().getClient();
611
						}
611
						}*/
612
						transaction_client.createFlipkartOrder(flipkartOrder);
612
						transaction_client.createFlipkartOrder(flipkartOrder);
613
						transaction_client.setOrderAttributes(flipkartOrder.getOrderId(),attributeList);
613
						transaction_client.setOrderAttributes(flipkartOrder.getOrderId(),attributeList);
614
						logger.info("transaction id : " + Long.valueOf(transactionId) + " Payment id : " + paymentId);
614
						logger.info("transaction id : " + Long.valueOf(transactionId) + " Payment id : " + paymentId);
615
						new PaymentClient().getClient().updatePaymentDetails(paymentId, null, null, null, null, null, null, subOrderId, null, PaymentStatus.SUCCESS, null, null);
615
						new PaymentClient().getClient().updatePaymentDetails(paymentId, null, null, null, null, null, null, subOrderId, null, PaymentStatus.SUCCESS, null, null);
616
						orders_processed++;
616
						orders_processed++;