added basic strcture for the callbackapi

This commit is contained in:
Lincpay Tech
2025-11-24 13:07:26 +05:30
parent d838f4c5cf
commit 08d5509c1a
5 changed files with 93 additions and 6 deletions
@@ -398,6 +398,24 @@ public class PaymentServiceImpl implements PaymentService {
throw new CustomException("Invalid JSON received from API");
}
}
@Override
public ResponseModel handlePaymentIntiateCallback(TransactionStatusResponse transactionStatusResponse) {
LOGGER.info("Recived Call Back from FetchBillValidateResponse: {}", transactionStatusResponse);
if(transactionStatusResponse.getGeneralResp().getStatusCode().equals("200")) {
}
else {
LOGGER.info("Bill Fetch Callback Failed with Status: {}", transactionStatusResponse.getGeneralResp().getStatus());
}
return new ResponseModel("CallBack Recieved Successfully",
"200",
200,
"");
}
}
/* PollBack logic for the fetchTxnByTxnId API
* @Override public ResponseModel fetchTxnByTxnId(BillFetchByBillIdRequest