for the review
This commit is contained in:
@@ -48,4 +48,27 @@ public class Helper {
|
||||
LOGGER.info("Merchant is valid and active for MID: {}", requestModel.getMid());
|
||||
return true;
|
||||
}
|
||||
public String validateMerchant(Object requestModel) {
|
||||
|
||||
// if (requestModel == null || requestModel.getMid() == null) {
|
||||
// LOGGER.warn("MerchantRequestModel or MID is null");
|
||||
// return "Invalid request: MID is required";
|
||||
// }
|
||||
//
|
||||
// // Fetch merchant details
|
||||
// BBPSMerchantValidation merchant = merchantRegisterRepo.findByMid(requestModel.getMid());
|
||||
//
|
||||
// if (merchant == null) {
|
||||
// LOGGER.warn("Merchant not found for MID: {}", requestModel.getMid());
|
||||
// return "Merchant not found";
|
||||
// }
|
||||
//
|
||||
// if (!Boolean.TRUE.equals(merchant.isActive())) {
|
||||
// LOGGER.warn("Merchant inactive for MID: {}", requestModel.getMid());
|
||||
// return "Merchant inactive";
|
||||
// }
|
||||
//
|
||||
// LOGGER.info("Merchant is valid and active for MID: {}", requestModel.getMid());
|
||||
return "Valid"; // Success message
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user