Skip to content

Commit

Permalink
Prestashop v1.7.7 compatibile PHP 8
Browse files Browse the repository at this point in the history
  • Loading branch information
navid59 committed Apr 12, 2021
1 parent 21334df commit 49079b5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion 1.7.7/mobilpay_cc/Mobilpay/Payment/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ public function buildAccessParameters($public_key, &$env_key, &$enc_data)
$src_data = Mobilpay_Payment_Request::buildQueryString($params);
$enc_data = '';
$env_keys = array();
$result = openssl_seal($src_data, $enc_data, $env_keys, array($public_key));
$cipher_algo = 'RC4';
$result = openssl_seal($src_data, $enc_data, $env_keys, array($public_key), $cipher_algo);
if($result === false)
{
$env_key = null;
Expand Down
6 changes: 4 additions & 2 deletions 1.7.7/mobilpay_cc/Mobilpay/Payment/Request/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ static public function factoryFromEncrypted($envKey, $encData, $privateKeyFilePa
}

$data = null;
$result = @openssl_open($srcData, $data, $srcEnvKey, $privateKey);
$cipher_algo = 'RC4';
$result = @openssl_open($srcData, $data, $srcEnvKey, $privateKey, $cipher_algo);
if($result === false)
{
throw new Exception('Failed decrypting data', self::ERROR_CONFIRM_FAILED_DECRYPT_DATA);
Expand Down Expand Up @@ -325,7 +326,8 @@ public function encrypt($x509FilePath)
$publicKeys = array($publicKey);
$encData = null;
$envKeys = null;
$result = openssl_seal($srcData, $encData, $envKeys, $publicKeys);
$cipher_algo = 'RC4';
$result = openssl_seal($srcData, $encData, $envKeys, $publicKeys, $cipher_algo);
if($result === false)
{
$this->outEncData = null;
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# NETOPIA Payments
## NETOPIA Payments module for Prestashop
## NETOPIA Payments module for Prestashop 1.7.7
### compatible with php 8.0.0


##### Note
Expand Down

0 comments on commit 49079b5

Please sign in to comment.