Hello I am using Paytm checksum dependency in my Liferay dxp project
But I am getting error :com.sun.crypto.provider.AESCipher$General cannot be cast to javax.crypto.CipherSpi
Gradle Properties :
dependencies {compile fileTree(dir: 'libs/', include: '*.jar') compileInclude name: 'paytmchecksum-1.1'}
PaytmUtil contains the bellow code.
private static String getCheckSumPayTm(TreeMap<String, String> reqMap){
CheckSumServiceHelper checkSumServiceHelper = CheckSumServiceHelper.getCheckSumServiceHelper();
String checksum = null;
try {
checksum = checkSumServiceHelper.genrateCheckSum("paytmKey", reqMap.toString());
log.info("PAYTM CHECKSUM ================== " + checksum);
} catch (Exception e) {
e.printStackTrace();
log.error("error :" + e.getMessage());
}
return checksum;
}