Exemple #1
0
 function __construct()
 {
     global $order;
     parent::__construct();
     $this->code = 'authorizenet';
     if (!empty($_GET['main_page'])) {
         $this->title = MODULE_PAYMENT_AUTHORIZENET_TEXT_CATALOG_TITLE;
         // Payment module title in Catalog
     } else {
         $this->title = MODULE_PAYMENT_AUTHORIZENET_TEXT_ADMIN_TITLE;
         // Payment module title in Admin
     }
     $this->description = MODULE_PAYMENT_AUTHORIZENET_TEXT_DESCRIPTION;
     if (defined('MODULE_PAYMENT_AUTHORIZENET_STATUS')) {
         $this->enabled = MODULE_PAYMENT_AUTHORIZENET_STATUS == 'True' ? true : false;
         $this->sort_order = MODULE_PAYMENT_AUTHORIZENET_SORT_ORDER;
         if ((int) MODULE_PAYMENT_AUTHORIZENET_ORDER_STATUS_ID > 0) {
             $this->order_status = MODULE_PAYMENT_AUTHORIZENET_ORDER_STATUS_ID;
         }
         if (is_object($order)) {
             $this->update_status();
         }
     }
     $this->form_action_url = 'https://secure.authorize.net/gateway/transact.dll';
 }
Exemple #2
0
 function __construct()
 {
     global $order;
     parent::__construct();
     $this->code = 'cc';
     $this->title = MODULE_PAYMENT_CC_TEXT_TITLE;
     $this->description = MODULE_PAYMENT_CC_TEXT_DESCRIPTION;
     $this->sort_order = defined('MODULE_PAYMENT_CC_SORT_ORDER') ? MODULE_PAYMENT_CC_SORT_ORDER : 0;
     $this->enabled = defined('MODULE_PAYMENT_CC_STATUS') && MODULE_PAYMENT_CC_STATUS == 'True' ? true : false;
     if (defined('MODULE_PAYMENT_CC_ORDER_STATUS_ID') && (int) MODULE_PAYMENT_CC_ORDER_STATUS_ID > 0) {
         $this->order_status = MODULE_PAYMENT_CC_ORDER_STATUS_ID;
     }
     if (is_object($order)) {
         $this->update_status();
     }
 }
Exemple #3
0
 public function __construct()
 {
     parent::__construct();
     $this->code = 'payflowpro';
     if (!empty($_GET['main_page'])) {
         $this->title = tra('Credit Card');
         // Payment module title in Catalog
     } else {
         $this->title = tra('PayPal PayFlow Pro');
         // Payment module title in Admin
     }
     $this->description = tra('Credit Card Test Info:<br /><br />CC#: 4111111111111111 or<br />5105105105105100<br />Expiry: Any');
     $this->sort_order = defined('MODULE_PAYMENT_PAYFLOWPRO_SORT_ORDER') ? MODULE_PAYMENT_PAYFLOWPRO_SORT_ORDER : 0;
     $this->enabled = defined('MODULE_PAYMENT_PAYFLOWPRO_STATUS') && MODULE_PAYMENT_PAYFLOWPRO_STATUS == 'True' ? true : false;
     if (defined('MODULE_PAYMENT_PAYFLOWPRO_ORDER_STATUS_ID') && (int) MODULE_PAYMENT_PAYFLOWPRO_ORDER_STATUS_ID > 0) {
         $this->order_status = MODULE_PAYMENT_PAYFLOWPRO_ORDER_STATUS_ID;
     }
     $this->form_action_url = zen_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', false);
     // Page to go to upon submitting page info
 }