Hounddd / omnipay-systempay

SystemPay driver for the Omnipay PHP payment processing library
MIT License
0 stars 5 forks source link

Add sha256 support #2

Closed PubliAlex closed 3 years ago

PubliAlex commented 3 years ago

Hello,

Systempay propose 2 keys for encryption :

It seems your script is based on an old version of payzen that provided only sha1 support. That method is deprecated, you should use sha256 method instead, or, even better, let the user choose.

Here is the documentation about it : https://paiement.systempay.fr/doc/en-EN/form-payment/standard-payment/computing-the-signature.html

Best regards,

Alex

damsfx commented 3 years ago

Hi Alex,

I apologize for the late response, I'm busy at the moment.
You can always submit a PR if you've made those changes; if not, a list of changes to make and I'll try to free up some time.

damsfx commented 3 years ago

Give a try : https://github.com/Hounddd/omnipay-systempay/pull/5/commits/984074c9cc2ad3c56e6c6af84a78dca12df00c68

PubliAlex commented 3 years ago

It works, thank you