Ejemplo n.º 1
0
 public function __construct()
 {
     $this->name = 'paysafecard';
     $this->tab = 'payments_gateways';
     $this->version = '1.4';
     $this->module_dir = dirname(__FILE__);
     $this->certificat_dir = dirname(__FILE__) . '/keyring/';
     $this->need_instance = 0;
     $this->module_key = '66d2d1a977010447c64dcde0c6e46aa0';
     $this->author = 'PrestaShop';
     parent::__construct();
     $this->displayName = $this->l('PaysafeCard');
     $this->description = $this->l('Accepts payments by PaysafeCard.');
     /* For 1.4.3 and less compatibility */
     $updateConfig = array('PS_OS_CHEQUE', 'PS_OS_PAYMENT', 'PS_OS_PREPARATION', 'PS_OS_SHIPPING', 'PS_OS_CANCELED', 'PS_OS_REFUND', 'PS_OS_ERROR', 'PS_OS_OUTOFSTOCK', 'PS_OS_BANKWIRE', 'PS_OS_PAYPAL', 'PS_OS_WS_PAYMENT');
     if (!Configuration::get('PS_OS_PAYMENT')) {
         foreach ($updateConfig as $u) {
             if (!Configuration::get($u) && defined('_' . $u . '_')) {
                 Configuration::updateValue($u, constant('_' . $u . '_'));
             }
         }
     }
     /** Backward compatibility */
     require _PS_MODULE_DIR_ . $this->name . '/backward_compatibility/backward.php';
 }
Ejemplo n.º 2
0
 public function __construct()
 {
     $this->name = 'paysafecard';
     $this->tab = 'payments_gateways';
     $this->version = '1.3';
     $this->module_dir = dirname(__FILE__);
     $this->certificat_dir = dirname(__FILE__) . '/keyring/';
     $this->need_instance = 0;
     parent::__construct();
     $this->displayName = $this->l('PaysafeCard');
     $this->description = $this->l('Accepts payments by PaysafeCard.');
     /* For 1.4.3 and less compatibility */
     $updateConfig = array('PS_OS_CHEQUE', 'PS_OS_PAYMENT', 'PS_OS_PREPARATION', 'PS_OS_SHIPPING', 'PS_OS_CANCELED', 'PS_OS_REFUND', 'PS_OS_ERROR', 'PS_OS_OUTOFSTOCK', 'PS_OS_BANKWIRE', 'PS_OS_PAYPAL', 'PS_OS_WS_PAYMENT');
     if (!Configuration::get('PS_OS_PAYMENT')) {
         foreach ($updateConfig as $u) {
             if (!Configuration::get($u) && defined('_' . $u . '_')) {
                 Configuration::updateValue($u, constant('_' . $u . '_'));
             }
         }
     }
 }