By adrien on Tuesday, 17 October 2017
Posted in General
Replies 1
Likes 0
Views 489
Votes 0
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

$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)
Ah, thanks for the input on this Adrien! Logged this into our issue tracker
·
Tuesday, 17 October 2017 00:49
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post