I found and fixed an easy bug in the Payline payment app for Payplans:
in the setting form payline.xml , the "Live" option param name is isProduction
in the payline.php
Params vars are defined as
('in' instead of 'is')
For this reason, the 'live' option is missed, getting always the default value: false.
This makes the plugin work in test (homologation) environment, but it fails in production (where it never gets true)
Changing
to
every time it appears in the code in payline.php fixes the issue.
(Eaysy fix)
in the setting form payline.xml , the "Live" option param name is isProduction
in the payline.php
Params vars are defined as
$inProduction = $this->getAppParam('inProduction', false);
('in' instead of 'is')
For this reason, the 'live' option is missed, getting always the default value: false.
This makes the plugin work in test (homologation) environment, but it fails in production (where it never gets true)
Changing
$inProduction = $this->getAppParam('inProduction', false);
to
$inProduction = $this->getAppParam('isProduction', false);
every time it appears in the code in payline.php fixes the issue.
(Eaysy fix)