birkof / netopia-mobilpay

Mirroring MobilePay library with composer PSR-0 autoloading capability.
MIT License
5 stars 4 forks source link

openssl v3 not working with the current version #7

Open bbu23 opened 3 months ago

bbu23 commented 3 months ago

Hi, I'm in the process of upgrading my site to a newer version (Drupal 9 to Drupal 10). I've upgraded multiple packages and the core, and now the payments stopped working. I'm running PHP 8.1 everywhere.

The stage and prod sites that still run on the older version work. They are running the openssl version 1. After upgrading locally my packages, I see that now I have openssl 3. When attempting to encrypt the card transaction, I get the following error:

Exception: Error while encrypting data! Reason:error:0308010C:digital envelope routines::unsupported in Mobilpay\Payment\Request\RequestAbstract->encrypt() (line 353 of /var/www/html/vendor/birkof/netopia-mobilpay/src/Mobilpay/Payment/Request/RequestAbstract.php).

bbu23 commented 3 months ago

changed repo to https://github.com/mobilpay/composer