Subversion Repositories SmartDukaan

Rev

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

Rev 6489 Rev 6503
Line 219... Line 219...
219
				if (refundStatus == CAPTURE_STATUS_FOR_CONNECTION_ISSUE) {
219
				if (refundStatus == CAPTURE_STATUS_FOR_CONNECTION_ISSUE) {
220
	                resultMap.put(ERR_CODE, Errors.CONN_FAILURE.code);
220
	                resultMap.put(ERR_CODE, Errors.CONN_FAILURE.code);
221
	            }
221
	            }
222
			}
222
			}
223
			else {
223
			else {
224
				resultMap.put(CAPTURE_AUTH_ID, pipe.getAuth());			// Unique ID generated by Authorizer of the transaction
224
				resultMap.put(REFUND_AUTH_ID, pipe.getAuth());			// Unique ID generated by Authorizer of the transaction
225
				resultMap.put(CAPTURE_REF_ID, pipe.getRef());			// Unique reference number generated during the transaction
225
				resultMap.put(REFUND_REF_ID, pipe.getRef());			// Unique reference number generated during the transaction
226
				resultMap.put(CAPTURE_TXN_ID, pipe.getTransId());		// Unique Transaction ID generated after every successful transaction
226
				resultMap.put(REFUND_TXN_ID, pipe.getTransId());		// Unique Transaction ID generated after every successful transaction
227
				resultMap.put(CAPTURE_AMNT, pipe.getAmt());			// Original Amount of the transaction
227
				resultMap.put(REFUND_AMNT, pipe.getAmt());			// Original Amount of the transaction
228
			}
228
			}
229
		} catch (NotEnoughDataException e) {
229
		} catch (NotEnoughDataException e) {
230
            log.error(Errors.CAPTURE_FAILURE.message, e);
230
            log.error(Errors.CAPTURE_FAILURE.message, e);
231
            resultMap.put(ERR_CODE, Errors.CAPTURE_FAILURE.code);
231
            resultMap.put(ERR_CODE, Errors.CAPTURE_FAILURE.code);
232
            resultMap.put(ERROR, e.getMessage());
232
            resultMap.put(ERROR, e.getMessage());