Subversion Repositories SmartDukaan

Rev

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

Rev 649 Rev 686
Line 148... Line 148...
148
		} catch (TException e1) {
148
		} catch (TException e1) {
149
			// TODO Auto-generated catch block
149
			// TODO Auto-generated catch block
150
			e1.printStackTrace();
150
			e1.printStackTrace();
151
		}
151
		}
152
		Transaction t = new Transaction();
152
		Transaction t = new Transaction();
153
		PaymentInfo paymentInfo = new PaymentInfo();
-
 
154
		t.setPaymentInfo(paymentInfo);
-
 
155
		t.setShoppingCartid(pmnt.getCart_id());
153
		t.setShoppingCartid(pmnt.getCart_id());
156
		t.setCustomer_id(pmnt.getUser_id());
154
		t.setCustomer_id(pmnt.getUser_id());
157
		t.setCreatedOn(pmnt.getBank_ack_timestamp());
155
		t.setCreatedOn(pmnt.getBank_ack_timestamp());
158
		t.setTransactionStatus(TransactionStatus.INIT);
156
		t.setTransactionStatus(TransactionStatus.INIT);
159
		t.setStatusDescription("New order");
157
		t.setStatusDescription("New order");
Line 168... Line 166...
168
		payment.setCompletionTimestamp(pmnt.getBank_ack_timestamp());
166
		payment.setCompletionTimestamp(pmnt.getBank_ack_timestamp());
169
		payment.setSubmissionTimestamp(pmnt.getInit_timestamp());
167
		payment.setSubmissionTimestamp(pmnt.getInit_timestamp());
170
		
168
		
171
		Map<Long, Payment> paymentMap = new HashMap<Long, Payment>();
169
		Map<Long, Payment> paymentMap = new HashMap<Long, Payment>();
172
		paymentMap.put(payment.getCompletionTimestamp(), payment);
170
		paymentMap.put(payment.getCompletionTimestamp(), payment);
173
		paymentInfo.setPayments(paymentMap);
-
 
174
		
171
		
175
		t.setOrders(getOrders());
172
		t.setOrders(getOrders());
176
		
173
		
177
		return t;
174
		return t;
178
	}
175
	}