Skip to content

Commit 49079b5

Browse files
committed
Prestashop v1.7.7 compatibile PHP 8
1 parent 21334df commit 49079b5

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

1.7.7/mobilpay_cc/Mobilpay/Payment/Request.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ public function buildAccessParameters($public_key, &$env_key, &$enc_data)
174174
$src_data = Mobilpay_Payment_Request::buildQueryString($params);
175175
$enc_data = '';
176176
$env_keys = array();
177-
$result = openssl_seal($src_data, $enc_data, $env_keys, array($public_key));
177+
$cipher_algo = 'RC4';
178+
$result = openssl_seal($src_data, $enc_data, $env_keys, array($public_key), $cipher_algo);
178179
if($result === false)
179180
{
180181
$env_key = null;

1.7.7/mobilpay_cc/Mobilpay/Payment/Request/Abstract.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ static public function factoryFromEncrypted($envKey, $encData, $privateKeyFilePa
172172
}
173173

174174
$data = null;
175-
$result = @openssl_open($srcData, $data, $srcEnvKey, $privateKey);
175+
$cipher_algo = 'RC4';
176+
$result = @openssl_open($srcData, $data, $srcEnvKey, $privateKey, $cipher_algo);
176177
if($result === false)
177178
{
178179
throw new Exception('Failed decrypting data', self::ERROR_CONFIRM_FAILED_DECRYPT_DATA);
@@ -325,7 +326,8 @@ public function encrypt($x509FilePath)
325326
$publicKeys = array($publicKey);
326327
$encData = null;
327328
$envKeys = null;
328-
$result = openssl_seal($srcData, $encData, $envKeys, $publicKeys);
329+
$cipher_algo = 'RC4';
330+
$result = openssl_seal($srcData, $encData, $envKeys, $publicKeys, $cipher_algo);
329331
if($result === false)
330332
{
331333
$this->outEncData = null;

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# NETOPIA Payments
2-
## NETOPIA Payments module for Prestashop
2+
## NETOPIA Payments module for Prestashop 1.7.7
3+
### compatible with php 8.0.0
34

45

56
##### Note

0 commit comments

Comments
 (0)