The callback handler for the MOLPay (Razer Merchant Services) gateway module uses the deprecated each() function, which has been removed in PHP 8.0 and later. This causes the script to fail when executed in environments using PHP 8 and above.
File & Line Number:
File: molpay_callback.php
Line: 49
Steps to Reproduce:
Set up a server environment using PHP 8.0 or later.
Execute a transaction using the MOLPay gateway.
Observe the error: Call to undefined function each() when the callback is triggered.
Expected Behavior:
The callback script should process the transaction data without any errors.
Actual Behavior:
Received a fatal error indicating the each() function is undefined.
Suggested Fix:
Replace the usage of each() with a suitable alternative, such as a foreach loop.
The user feedback that the suggested fix is working, and also having concern about many of the existing function in this plugin has been deprecated in PHP 8.x
Description:
The callback handler for the MOLPay (Razer Merchant Services) gateway module uses the deprecated
each()
function, which has been removed in PHP 8.0 and later. This causes the script to fail when executed in environments using PHP 8 and above.File & Line Number:
molpay_callback.php
Steps to Reproduce:
Call to undefined function each()
when the callback is triggered.Expected Behavior:
The callback script should process the transaction data without any errors.
Actual Behavior:
Received a fatal error indicating the
each()
function is undefined.Suggested Fix:
Replace the usage of
each()
with a suitable alternative, such as aforeach
loop.