lyra / plugin-magento

An open source plugin that links Magento based e-commerce websites to PayZen secure payment gateway developed by Lyra Network.
https://lyra.com/fr/guides/magento/
Open Software License 3.0
10 stars 12 forks source link

Unknow constant \Lyranetwork\Lyra\Helper\Payment::TOKEN_EXPIRE #32

Closed nenes25 closed 1 year ago

nenes25 commented 1 year ago

Hello,

With the release of the version 2.7.0 the constant TOKEN_EXPIRE have been deleted from the class Lyranetwork\Lyra\Helper\Payment.

Due to this it's no more possible to use the embed integration on the checkout. We have the following error message :

Error: Undefined class constant 'TOKEN_EXPIRE' in /magento/app/code/Lyranetwork/Lyra/Model/Method/Standard.php:454

Regards,

nberhouche commented 1 year ago

Hello nenes25, Thank you for bringing this issue to our attention, we'll look into it right away.

Best regards

nberhouche commented 1 year ago

Hello again,

It seems there is an issue with your installation of the plugin, and you are using file Method/Standard.php from an older version of the plugin as there is no 'TOKEN_EXPIRE' anyware in the code of 2.7.0 version. Moreover, line 454 in app/code/Lyranetwork/Lyra/Model/Method/Standard.php uses "TOKEN_EXPIRE' in version 2.6.5, not in 2.7.0.

So it would be better to re-install the plugin, please check our documentation concerning plugin installation: https://payzen.io/en-EN/plugins/magento2/installing-the-payment-module.html.

Best regards

nenes25 commented 1 year ago

Hello @nberhouche ,

Thanks for your update, i've checked our git history and you're right. We have missed something during the module upgrade , it seems we have the old 2.6.5 file instead of the good one. Sorry for the wrong issue,

Regards,