function __construct()
 {
     global $order;
     parent::__construct();
     $this->mStatusKey = 'MODULE_PAYMENT_PURCHASEORDER_STATUS';
     $this->code = 'purchase_order';
     $this->title = 'Purchase Order';
     $this->description = 'Payment via purchase request from verified organization';
     $this->sort_order = defined('MODULE_PAYMENT_PURCHASEORDER_SORT_ORDER') ? MODULE_PAYMENT_PURCHASEORDER_SORT_ORDER : 0;
     $this->enabled = $this->isEnabled();
     if (defined('MODULE_PAYMENT_PURCHASEORDER_ORDER_STATUS_ID') && (int) MODULE_PAYMENT_PURCHASEORDER_ORDER_STATUS_ID > 0) {
         $this->order_status = MODULE_PAYMENT_PURCHASEORDER_ORDER_STATUS_ID;
     }
     if (is_object($order)) {
         $this->update_status();
     }
 }
Exemple #2
0
 function __construct($pAmazonOrdersId = NULL)
 {
     $this->mAmazonOrdersId = $pAmazonOrdersId;
     $this->code = 'amazonmws';
     parent::__construct();
     if (!empty($_GET['main_page'])) {
         $this->title = '';
         // Payment Module title in Catalog
     } else {
         $this->title = tra('AmazonMWS');
         // Payment Module title in Admin
     }
     $this->description = tra('AmazonMWS Order Integration');
     $this->sort_order = 998;
     $this->enabled = defined('MODULE_PAYMENT_AMAZONMWS_STATUS') && MODULE_PAYMENT_AMAZONMWS_STATUS == 'True' ? true : false;
     $this->credit_class = true;
 }
 public function __construct()
 {
     parent::__construct();
 }