added intentbased pg

This commit is contained in:
Lincpay Tech
2025-12-01 16:57:48 +05:30
parent dd30885b34
commit 29d54147d3
18 changed files with 781 additions and 7 deletions
@@ -177,5 +177,14 @@ public class Helper {
user.setAge(request.getAge());
return user;
}
public <T> T convertJsonToObject(String json, Class<T> clazz) {
try {
return objectMapper.readValue(json, clazz);
} catch (Exception e) {
throw new CustomException("Invalid JSON from payment API", "FAILED", 400, json);
}
}
}