Ejemplo n.º 1
0
	function __construct (& $subject, $config) {

		//if (self::$_this)
		//   return self::$_this;
		parent::__construct($subject, $config);

		$this->_loggable = TRUE;
		$this->tableFields = array_keys($this->getTableSQLFields());
		$this->_tablepkey = 'id';
		$this->_tableId = 'id';
		$varsToPush = $this->getVarsToPush();
		//$this->setEncryptedFields(array('params'));
		$this->setConfigParameterable($this->_configTableFieldName, $varsToPush);

		$this->setCryptedFields(array('accessKey', 'secretKey'));
		$amazon_library = JPATH_SITE . DS . 'plugins' . DS . 'vmpayment' . DS . 'amazon' . DS . 'library' ;


		//set_include_path(get_include_path() . PATH_SEPARATOR . realpath(dirname(__FILE__) . "/../../."));
		set_include_path($amazon_library);
		$this->loadAmazonClass('OffAmazonPaymentsService_Client');
		if (!JFactory::getApplication()->isSite()) {
			JFactory::getDocument()->addScript(JURI::root(true) . '/plugins/vmpayment/amazon/assets/js/admin.js');
			JFactory::getDocument()->addStyleSheet(JURI::root(true) . '/plugins/vmpayment/amazon/assets/css/amazon-admin.css');
		}

	}
	function __construct (& $subject, $config) {

		parent::__construct ($subject, $config);

		$this->_loggable = TRUE;
		$this->_debug = TRUE;
		$this->tableFields = array_keys ($this->getTableSQLFields ());
		$this->_tablepkey = 'id'; //virtuemart_moneybookers_id';
		$this->_tableId = 'id'; //'virtuemart_moneybookers_id';

		$varsToPush = array('pay_to_email'        => array('', 'char'),
		                    'hide_login'          => array(0, 'int'),
		                    'logourl'             => array('', 'char'),
		                    'secret_word'         => array('', 'char'),
		                    'payment_currency'    => array('', 'char'),
		                    'payment_logos'       => array('', 'char'),
		                    'countries'           => array('', 'char'),
		                    'cost_per_transaction'
		                                          => array('', 'int'),
		                    'cost_percent_total'
		                                          => array('', 'int'),
		                    'min_amount'          => array('', 'int'),
		                    'max_amount'          => array('', 'int'),
		                    'tax_id'              => array(0, 'int'),
		                    'countries'           => array('', 'char'),
		                    'status_pending'      => array('', 'char'),
		                    'status_success'      => array('', 'char'),
		                    'status_canceled'     => array('', 'char'));

		$this->setConfigParameterable ($this->_configTableFieldName, $varsToPush);
	}
Ejemplo n.º 3
0
	function __construct (& $subject, $config) {

		parent::__construct ($subject, $config);
		// unique filelanguage for all moneybookers methods
		$jlang = JFactory::getLanguage ();
		$jlang->load ('plg_vmpayment_moneybookers', JPATH_ADMINISTRATOR, NULL, TRUE);
		$this->_loggable = TRUE;
		$this->_debug = TRUE;
		$this->tableFields = array_keys ($this->getTableSQLFields ());
		$this->_tablepkey = 'id'; //virtuemart_moneybookers_id';
		$this->_tableId = 'id'; //'virtuemart_moneybookers_id';

		$varsToPush = array('pay_to_email'        => array('', 'char'),
		                    'hide_login'          => array(0, 'int'),
		                    'logourl'             => array('', 'char'),
		                    'secret_word'         => array('', 'char'),
		                    'payment_currency'    => array('', 'char'),
		                    'payment_logos'       => array('', 'char'),
		                    'countries'           => array('', 'char'),
		                    'cost_per_transaction'
		                                          => array('', 'int'),
		                    'cost_percent_total'
		                                          => array('', 'int'),
		                    'min_amount'          => array('', 'int'),
		                    'max_amount'          => array('', 'int'),
		                    'tax_id'              => array(0, 'int'),
		                    'countries'           => array('', 'char'),
		                    'status_pending'      => array('', 'char'),
		                    'status_success'      => array('', 'char'),
		                    'status_canceled'     => array('', 'char'));

		$this->setConfigParameterable ($this->_configTableFieldName, $varsToPush);
	}
Ejemplo n.º 4
0
	function __construct (& $subject, $config) {

		parent::__construct($subject, $config);

		$this->_loggable = TRUE;
		$this->tableFields = array_keys($this->getTableSQLFields());
		$this->_tablepkey = 'id'; //virtuemart_sofort_id';
		$this->_tableId = 'id'; //'virtuemart_sofort_id';

		$varsToPush = array('payment_logos' => array('', 'char'),
		                    'configuration_key' => array('', 'char'),
		                    'buyer_protection' => array('', 'int'),
		                    'payment_currency' => array('', 'int'),
		                    'email_currency' => array('', 'int'),
		                    'countries' => array('', 'char'),
		                    'min_amount' => array('', 'float'),
		                    'max_amount' => array('', 'float'),
		                    'cost_per_transaction' => array('', 'char'),
		                    'cost_percent_total' => array('', 'char'),
		                    'tax_id' => array('', 'int'),
		                    'status_pending' => array('', 'char'),
		                    'status_received' => array('', 'char'),
		                    'status_loss' => array('', 'char'),
		                    'status_refunded' => array('', 'char'),
		                    'debug' => array('', 'int'),
		);

		$this->setConfigParameterable($this->_configTableFieldName, $varsToPush);

	}
Ejemplo n.º 5
0
 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->_loggable = true;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $varsToPush = array('baokim_merchant_email' => array('', 'char'), 'baokim_merchant_id' => array('', 'char'), 'baokim_secure_pass' => array('', 'char'), 'payment_currency' => array(0, 'int'), 'debug' => array(0, 'int'), 'status_pending' => array('', 'char'), 'status_success' => array('', 'char'), 'status_canceled' => array('', 'char'), 'min_amount' => array(0, 'int'), 'max_amount' => array(0, 'int'));
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
 }
Ejemplo n.º 6
0
 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->_loggable = true;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $varsToPush = array('payment_logos' => array('', 'char'), 'countries' => array(0, 'int'), 'payment_order_total' => 'decimal(15,5) NOT NULL DEFAULT \'0.00000\' ', 'payment_currency' => array(0, 'int'), 'min_amount' => array(0, 'int'), 'max_amount' => array(0, 'int'), 'cost_per_transaction' => array(0, 'int'), 'cost_percent_total' => array(0, 'int'), 'tax_id' => array(0, 'int'), 'paykeeper_secret' => array('', 'string'), 'status_success' => array('', 'char'), 'status_pending' => array('', 'char'), 'status_canceled' => array('', 'char'), 'paykeeper_payment_form_url' => array('', 'string'));
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
 }
 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->_loggable = true;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $varsToPush = array('payment_logos' => array('', 'char'), 'countries' => array(0, 'int'), 'payment_currency' => array(0, 'int'), 'merchant_id' => array('', 'string'), 'secret_key' => array('', 'string'), 'status_success' => array('', 'char'), 'status_pending' => array('', 'char'), 'status_canceled' => array('', 'char'));
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
 }
Ejemplo n.º 8
0
 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->_loggable = true;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $varsToPush = $this->getVarsToPush();
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
 }
Ejemplo n.º 9
0
 /**
  * @param       JDispatcher     $dispatcher         Joomla dispatcher
  * @param       array           $config             Plugin config
  */
 public function __construct(JDispatcher $dispatcher, array $config)
 {
     parent::__construct($dispatcher, $config);
     $this->_tablepkey = 'id';
     $this->_tableId = 'id';
     $this->tableFields = array_keys($this->getTableSQLFields());
     $this->setConfigParameterable($this->_configTableFieldName, $this->getVarsToPush());
 }
Ejemplo n.º 10
0
 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->_loggable = true;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $varsToPush = array('Client_Title' => array('', 'char'), 'Short_Names' => array('', 'int'), 'Free_Shipping' => array('', 'int'), 'Free_From' => array('', 'char'), 'Only_Estonia' => array('', 'int'), 'small' => array('', 'char'), 'medium' => array('', 'char'), 'large' => array('', 'char'), 'calc_shipping' => array('', 'int'), 'tax_id' => array('', 'int'));
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
 }
Ejemplo n.º 11
0
 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     // Insert javascript into the head
     $document = JFactory::getDocument();
     $document->addScript(JURI::base() . "plugins/vmuserfield/mds_validation/mds_collivery.js");
     $document->addScriptDeclaration('base_url = "' . JURI::base() . '";');
 }
Ejemplo n.º 12
0
 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->_loggable = true;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $varsToPush = array('payment_currency' => array(0, 'int'), 'status_success' => array(0, "int"), 'status_canceled' => array(0, "int"), 'payment_logos' => array('', 'char'), 'priv_key' => array('', 'text'), 'pub_key' => array('', 'text'), 'VK_SND_ID' => array('', 'string'), 'priv_pass' => array('', 'string'), 'countries' => array('', 'string'), 'return' => array('', 'text'), 'cancel' => array('', "text"), 'url' => array('', 'text'));
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
 }
Ejemplo n.º 13
0
 public function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     JFactory::getLanguage()->load('com_virtuemart', JPATH_ADMINISTRATOR);
     $this->_loggable = true;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $varsToPush = array('destination_url' => array('https://payment.maksekeskus.ee/pay/1/signed.html', 'string'), 'shop_id' => array('', 'string'), 'api_secret' => array('', 'string'), 'currency' => array('', 'string'), 'locale' => array('et', 'string'), 'return' => array(JROUTE::_(JURI::root() . 'index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived'), 'string'), 'status_success' => array(0, 'int'), 'status_canceled' => array(0, 'int'), 'countries' => array('', 'string'));
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
 }
 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $jlang = JFactory::getLanguage();
     $jlang->load('plg_vmpayment_payeer', JPATH_ADMINISTRATOR, NULL, TRUE);
     $this->_loggable = true;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $varsToPush = array('payment_logos' => array('', 'char'), 'countries' => array(0, 'int'), 'payment_currency' => array(0, 'int'), 'merchant_url' => array('https://payeer.com/merchant/', 'string'), 'merchant_id' => array('', 'string'), 'secret_key' => array('', 'string'), 'status_success' => array('', 'char'), 'status_pending' => array('', 'char'), 'status_canceled' => array('', 'char'), 'order_desc' => array('', 'string'), 'ip_filter' => array('', 'string'), 'admin_email' => array('', 'string'), 'log_file' => array('', 'string'));
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
 }
Ejemplo n.º 15
0
 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->_loggable = TRUE;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $varsToPush = $this->getVarsToPush();
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
     plgVmPaymentKlarnaCheckout::includeKlarnaFiles();
     VmConfig::loadJLang('plg_vmpayment_klarna');
 }
Ejemplo n.º 16
0
 /**
  * @param object $subject
  * @param array  $config
  */
 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->_loggable = TRUE;
     $this->_tablepkey = 'id';
     $this->_tableId = 'id';
     $this->tableFields = array_keys($this->getTableSQLFields());
     $varsToPush = $this->getVarsToPush();
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
     //vmdebug('Muh constructed plgVmShipmentWeight_countries',$varsToPush);
 }
Ejemplo n.º 17
0
 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->_loggable = TRUE;
     $this->_tablepkey = 'id';
     $this->_tableId = 'id';
     $this->tableFields = array_keys($this->getTableSQLFields());
     $varsToPush = $this->getVarsToPush();
     //$this->setCryptedFields(array('transaction_key', 'sandbox_transaction_key'));
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
 }
Ejemplo n.º 18
0
 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->_loggable = true;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $varsToPush = array('payment_uid' => array('', 'char'), 'payment_pid' => array('', 'char'), 'payment_pas' => array('', 'char'), 'payment_npas' => array('', 'char'), 'payment_info' => array('', 'char'), 'debug' => array(0, 'int'), 'status_pending' => array('', 'char'), 'status_success' => array('', 'char'), 'status_canceled' => array('', 'char'));
     //$this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
     $this->tableFields = array_keys($this->getTableSQLFields());
     $varsToPush = $this->getVarsToPush();
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
 }
Ejemplo n.º 19
0
 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->_loggable = TRUE;
     $this->_tablepkey = 'id';
     $this->_tableId = 'id';
     $this->tableFields = array_keys($this->getTableSQLFields());
     $varsToPush = $this->getVarsToPush();
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
     //echo '<pre>'; print_r($subject); die;
 }
Ejemplo n.º 20
0
 /**
  * The constructor
  * @param type $subject
  * @param type $config
  */
 public function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->_loggable = TRUE;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $this->_tablepkey = 'id';
     $this->_tableId = 'id';
     $this->setConfigParameterable($this->_configTableFieldName, $this->_getPagSeguroVarsToPush());
     // adding PagSeguro API
     $this->_addPagSeguroLibrary();
 }
Ejemplo n.º 21
0
 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     // 		vmdebug('Plugin stuff',$subject, $config);
     $this->_loggable = TRUE;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $this->_tablepkey = 'id';
     $this->_tableId = 'id';
     $varsToPush = $this->getVarsToPush();
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
 }
Ejemplo n.º 22
0
 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->_loggable = true;
     $this->_tablepkey = 'id';
     $this->_tableId = 'id';
     $this->tableFields = array_keys($this->getTableSQLFields());
     $varsToPush = $this->getVarsToPush();
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
     //JHTML::_('behavior.modal', 'a.ulozenkamodal');
 }
Ejemplo n.º 23
0
 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->_loggable = TRUE;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $this->_tablepkey = 'id';
     //virtuemart_paypal_id';
     $this->_tableId = 'id';
     //'virtuemart_paypal_id';
     $varsToPush = array('paypal_merchant_email' => array('', 'char'), 'paypal_verified_only' => array('', 'int'), 'payment_currency' => array('', 'int'), 'email_currency' => array('', 'int'), 'log_ipn' => array('', 'int'), 'sandbox' => array(0, 'int'), 'sandbox_merchant_email' => array('', 'char'), 'payment_logos' => array('', 'char'), 'debug' => array(0, 'int'), 'status_pending' => array('', 'char'), 'status_success' => array('', 'char'), 'status_canceled' => array('', 'char'), 'status_refunded' => array('', 'char'), 'countries' => array('', 'char'), 'min_amount' => array('', 'int'), 'max_amount' => array('', 'int'), 'secure_post' => array('', 'int'), 'ipn_test' => array('', 'int'), 'no_shipping' => array('', 'int'), 'address_override' => array('', 'int'), 'cost_per_transaction' => array('', 'int'), 'cost_percent_total' => array('', 'int'), 'tax_id' => array(0, 'int'));
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
 }
Ejemplo n.º 24
0
 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->_loggable = TRUE;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $this->_tablepkey = 'id';
     //virtuemart_sofort_id';
     $this->_tableId = 'id';
     //'virtuemart_sofort_id';
     $varsToPush = $this->getVarsToPush();
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
 }
Ejemplo n.º 25
0
 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $jlang = JFactory::getLanguage();
     $jlang->load('plg_vmpayment_oos', JPATH_ADMINISTRATOR, NULL, TRUE);
     $this->_loggable = true;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $this->_tablepkey = 'id';
     $this->_tableId = 'id';
     $varsToPush = array('url_pay_page' => array('', 'char'), 'merchant_id' => array('', 'char'), 'merchant_key' => array('', 'char'), 'url_success' => array('', 'char'), 'url_fail' => array('', 'char'), 'price_final' => array('', 'int'), 'lang' => array('', 'char'), 'payment_logos' => array('', 'char'), 'status_pending' => array('', 'char'), 'status_success' => array('', 'char'), 'status_canceled' => array('', 'char'), 'countries' => array('', 'char'), 'min_amount' => array('', 'float'), 'max_amount' => array('', 'float'), 'cost_per_transaction' => array('', 'int'), 'cost_percent_total' => array('', 'int'), 'tax_id' => array(0, 'int'));
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
 }
Ejemplo n.º 26
0
 function __construct(&$subject, $config)
 {
     //if (self::$_this)
     //   return self::$_this;
     parent::__construct($subject, $config);
     // 		vmdebug('Plugin stuff',$subject, $config);
     $this->_loggable = true;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $varsToPush = $this->getVarsToPush();
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
     // self::$_this = $this;
 }
 function __construct(&$subject, $config)
 {
     //if (self::$_this)
     //   return self::$_this;
     parent::__construct($subject, $config);
     $this->_loggable = true;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $this->_tablepkey = 'id';
     $this->_tableId = 'id';
     $varsToPush = array('salt' => array('', 'int'), 'merchantkey' => array('', 'char'), 'mode' => array('', 'char'), 'description' => array('', 'text'), 'payment_logos' => array('', 'char'), 'payment_currency' => array('', 'int'), 'status_pending' => array('', 'char'), 'status_success' => array('', 'char'), 'status_canceled' => array('', 'char'), 'countries' => array('', 'char'), 'min_amount' => array('', 'int'), 'max_amount' => array('', 'int'), 'secure_post' => array('', 'int'), 'ipn_test' => array('', 'int'), 'no_shipping' => array('', 'int'), 'address_override' => array('', 'int'), 'cost_per_transaction' => array('', 'int'), 'cost_percent_total' => array('', 'int'), 'tax_id' => array(0, 'int'));
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
     //self::$_this = $this;
 }
Ejemplo n.º 28
0
 /**
  * @param object $subject
  * @param array  $config
  */
 function __construct(&$subject, $config)
 {
     //if (self::$_this)
     //   return self::$_this;
     parent::__construct($subject, $config);
     $this->_loggable = TRUE;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $varsToPush = $this->getVarsToPush();
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
     // 		self::$_this
     //$this->createPluginTable($this->_tablename);
     //self::$_this = $this;
 }
Ejemplo n.º 29
0
 function __construct(&$subject, $config)
 {
     //if (self::$_this)
     //   return self::$_this;
     parent::__construct($subject, $config);
     $this->_loggable = TRUE;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $this->_tablepkey = 'id';
     $this->_tableId = 'id';
     $this->secret = strtoupper(sha1(mt_rand(10000, mt_getrandmax())));
     $varsToPush = $this->getVarsToPush();
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
     //self::$_this = $this;
 }
Ejemplo n.º 30
0
 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->_loggable = true;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $this->_tablepkey = 'id';
     $this->_tableId = 'id';
     $varsToPush = $this->getVarsToPush();
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
     $jlang = JFactory::getLanguage();
     $jlang->load('plg_vmpayment_klarna', JPATH_ADMINISTRATOR, 'en-GB', true);
     $jlang->load('plg_vmpayment_klarna', JPATH_ADMINISTRATOR, $jlang->getDefault(), true);
     $jlang->load('plg_vmpayment_klarna', JPATH_ADMINISTRATOR, NULL, true);
 }