Subversion Repositories SmartDukaan

Rev

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

Rev 23684 Rev 23709
Line 181... Line 181...
181
						this.transactionClient.enqueueTransactionInfoEmail(Long.parseLong(transactionId));
181
						this.transactionClient.enqueueTransactionInfoEmail(Long.parseLong(transactionId));
182
					} catch (Exception e1) {
182
					} catch (Exception e1) {
183
						log.error("Unable to update status of transaction. Thrift Exception:", e1);
183
						log.error("Unable to update status of transaction. Thrift Exception:", e1);
184
					}
184
					}
185
					this.userClient = new UserClient().getClient();
185
					this.userClient = new UserClient().getClient();
-
 
186
					transaction = this.transactionClient.getTransaction(Long.valueOf(transactionId));
186
					this.resetCart(transaction);
187
					this.resetCart(transaction);
187
					hasError = false;
188
					hasError = false;
188
				}
189
				}
189
			}
190
			}
190
		} catch (Exception e) {
191
		} catch (Exception e) {
Line 218... Line 219...
218
 
219
 
219
		log.debug("Items to reset in cart are: " + items);
220
		log.debug("Items to reset in cart are: " + items);
220
 
221
 
221
		try {
222
		try {
222
			// TODO Optimize the function to send less data over the wire
223
			// TODO Optimize the function to send less data over the wire
223
			this.userClient				.resetCart(transaction.getShoppingCartid(), items);
224
			this.userClient.resetCart(transaction.getShoppingCartid(), items);
224
		} catch (TException e) {
225
		} catch (TException e) {
225
			log.error("Error while updating information in payment database.", e);
226
			log.error("Error while updating information in payment database.", e);
226
		} catch (ShoppingCartException e) {
227
		} catch (ShoppingCartException e) {
227
			log.error("Error while reseting the cart in cart database.", e);
228
			log.error("Error while reseting the cart in cart database.", e);
228
		} catch (Exception e) {
229
		} catch (Exception e) {