Problem/Motivation

This module is still using Mycrypt which is abandoned since PHP 7.1 and removed from the core of PHP 7.2. A new modern encryption approach is needed to keep this module alive.

Steps to reproduce

Enable the module on an installation that uses PHP > 7.2

Comments

hodba created an issue. See original summary.

hodba’s picture

Title: Replace Mycrypt library with OpenSSL » Replace Mycrypt library with a new modern encryption mechanism
saurabh-2k17’s picture

Assigned: Unassigned » saurabh-2k17
saurabh-2k17’s picture

Hi @hodba,

I have replace mcrypt by openssl.

Thanks

saurabh-2k17’s picture

Assigned: saurabh-2k17 » Unassigned
Status: Active » Needs review
burhanuddin’s picture

For any future readers here who will face any issue even after adding the above patch,
in install file, this lines needs too be commented -

if ($phase == 'install') {
if (!extension_loaded('mcrypt')) {
$requirements['mcrypt'] = [
'description' => t('Commerce CCAvenue requires mcrypt extension. Make sure the extension is installed on server.'),
'severity' => REQUIREMENT_ERROR,
];
}
}

Otherwise module won't install.

gopisathya’s picture

Here is the updated patch with commerce_ccavenue.install file removed