Zen Cart Logo
Forums / Addon Payment Modules / there is a problem when I add skrill module.

there is a problem when I add skrill module.

Views: 1,044

Results 1 to 3 of 3
24 Jun 2013, 3:27 PM
#1
netebuy avatar

netebuy

New Zenner

Join Date:
Sep 2012
Posts:
5
Plugin Contributions:
0

there is a problem when I add skrill module.

skrill is called moneybooker before.
I download the module on skrill website.
the dubug in cache shows: PHP Parse error: syntax error, unexpected '{' in /******/moneybookers.php on line 54

line 54 should be in these lines.

function moneybookers() {
        global $messageStack;

        $this->code = 'moneybookers';
        $this->codeVersion = '0.0.1.a';
        $this->description = 'WELCOME';
        $this->title = ($this->check() ? "<b>" : "check") . MODULE_PAYMENT_MONEYBOOKERS_TEXT_MAIN_MODULE . (!$this->check() ? " - <b>" . MONDULE_PAYMENT_MONEYBOOKERS_TEXT_REQUIRED : "required") . "</b>";

        try {
            if ((int)$this->_get('ORDER_STATUS_ID') > 0) {
                $this->order_status = $this->_get('ORDER_STATUS_ID');
            }

            $this->sort_order = $this->_get('SORT_ORDER');

            if ($this->_defined('STATUS') && (!$this->_defined('EMAIL') || !$this->_get('EMAIL') || !$this->_defined('SECRET_WORD') || !$this->_defined('ID') || !$this->_get('ID'))) {
                $this->title .= '<b style="color: red"> (Module is not configured)</b>';
                $this->enabled = false;
            } else {
                $this->enabled = $this->_get('STATUS');
            }
        } catch (Exception $e) {
            $this->enabled = false;
        }
        
//        if (IS_ADMIN_FLAG === true) $this->tableCheckup();
    }

    /**
     * Funkcja sprawdzaj膮ca czy modu艂 jest zainstalowany
     *
     * @return bool
     */
25 Jun 2013, 10:59 AM
#2
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: there is a problem when I add skrill module.

I see nothing wrong with that code. There must be more too this.

Do you have any other clues?

Cheers
Rod

25 Jun 2013, 12:03 PM
#3
netebuy avatar

netebuy

New Zenner

Join Date:
Sep 2012
Posts:
5
Plugin Contributions:
0

Re: there is a problem when I add skrill module.

thanks for your reply.
I use this website in other hose with other domain before.
it's right before.
but when I transfer to new host and use new domain.I cann't see moneybooker list and button in admin.and I find this dubug infomation in cache.
then I download skrill addon again in skrill website.but it is still like this.does it only support 1.5?not 1.3.9?
alan