| Line 230... |
Line 230... |
| 230 |
if (refundStatus == CAPTURE_STATUS_FOR_CONNECTION_ISSUE) {
|
230 |
if (refundStatus == CAPTURE_STATUS_FOR_CONNECTION_ISSUE) {
|
| 231 |
resultMap.put(ERR_CODE, Errors.CONN_FAILURE.code);
|
231 |
resultMap.put(ERR_CODE, Errors.CONN_FAILURE.code);
|
| 232 |
}
|
232 |
}
|
| 233 |
}
|
233 |
}
|
| 234 |
else {
|
234 |
else {
|
| 235 |
resultMap.put(CAPTURE_AUTH_ID, pipe.getAuth()); // Unique ID generated by Authorizer of the transaction
|
235 |
resultMap.put(REFUND_AUTH_ID, pipe.getAuth()); // Unique ID generated by Authorizer of the transaction
|
| 236 |
resultMap.put(CAPTURE_REF_ID, pipe.getRef()); // Unique reference number generated during the transaction
|
236 |
resultMap.put(REFUND_REF_ID, pipe.getRef()); // Unique reference number generated during the transaction
|
| 237 |
resultMap.put(CAPTURE_TXN_ID, pipe.getTransId()); // Unique Transaction ID generated after every successful transaction
|
237 |
resultMap.put(REFUND_TXN_ID, pipe.getTransId()); // Unique Transaction ID generated after every successful transaction
|
| 238 |
resultMap.put(CAPTURE_AMNT, pipe.getAmt()); // Original Amount of the transaction
|
238 |
resultMap.put(REFUND_AMNT, pipe.getAmt()); // Original Amount of the transaction
|
| 239 |
}
|
239 |
}
|
| 240 |
} catch (NotEnoughDataException e) {
|
240 |
} catch (NotEnoughDataException e) {
|
| 241 |
log.error(Errors.CAPTURE_FAILURE.message, e);
|
241 |
log.error(Errors.CAPTURE_FAILURE.message, e);
|
| 242 |
resultMap.put(ERR_CODE, Errors.CAPTURE_FAILURE.code);
|
242 |
resultMap.put(ERR_CODE, Errors.CAPTURE_FAILURE.code);
|
| 243 |
resultMap.put(ERROR, e.getMessage());
|
243 |
resultMap.put(ERROR, e.getMessage());
|