function init()
 {
     $retval = false;
     if (isset($_SESSION['cart_Masterpayment_ID']) && !empty($_SESSION['cart_Masterpayment_ID'])) {
         parent::__construct();
         $this->order_ID = substr($_SESSION['cart_Masterpayment_ID'], strpos($_SESSION['cart_Masterpayment_ID'], '-') + 1);
         $this->notInControlkeyParmeters = array('sex', 'installmentsCount', 'installmentsFreq', 'installmentsPeriod', 'paymentDelay', 'dueDays', 'createAsPending', 'customerNo', 'invoiceNo');
         if ($this->checkRequestAccess()) {
             $this->paymentMethod = $this->getPaymentMethod();
             $retval = true;
         }
     }
     return $retval;
 }
 function masterpayment_config()
 {
     global $order;
     parent::__construct();
     $this->code = 'masterpayment_config';
     $this->title = MODULE_PAYMENT_MASTERPAYMENT_CONFIG_TEXT_TITLE;
     $this->description = MODULE_PAYMENT_MASTERPAYMENT_CONFIG_TEXT_DESCRIPTION;
     $this->enabled = false;
     //BOF - Tomcraft - 2012-12-15 - do not set/show a default sort order, when module is not enabled
     /*
     $this->sort_order		= 10;	  
     */
     $this->sort_order = MODULE_PAYMENT_MASTERPAYMENT_CONFIG_SORT_ORDER;
     //EOF - Tomcraft - 2012-12-15 - do not set/show a default sort order, when module is not enabled
 }
 function __construct(&$_var)
 {
     parent::__construct();
     $this->init($_var);
 }