function plgBookproPayment_paypal(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $language = JFactory::getLanguage();
     $language->load('plg_bookpro_payment_paypal', JPATH_ADMINISTRATOR);
     $this->api_username = trim($this->params->get('api_username'));
     $this->api_password = trim($this->params->get('api_password'));
     $this->api_signature = trim($this->params->get('api_signature'));
     $this->api_mode = $this->params->get('sandbox') ? 'sandbox' : 'live';
     $this->jbconfig = JComponentHelper::getParams('com_bookpro');
     $currency = trim($this->params->get('api_currency'));
     if (empty($currency)) {
         $currency = $this->jbconfig->get('main_currency');
     }
     $this->currency = $currency;
     //'USD';
 }
 function plgBookproPayment_PaypalPro(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->loadLanguage('plg_bookpro_' . $this->_element, JPATH_ADMINISTRATOR);
     $this->api_username = trim($this->params->get('pp_api_username'));
     $this->api_password = trim($this->params->get('pp_api_password'));
     $this->api_signature = trim($this->params->get('pp_api_signature'));
     $this->api_clientId = trim($this->params->get('pp_api_clientId'));
     //'AbfRs5zW25I4A2pg6jSVgPH5ysb7zqzqXwsH99n-mYEDt51Coyf3lLuQ467jbb9yobmFjMufPSzr139a';
     $this->api_clientSecret = trim($this->params->get('pp_api_clientSecret'));
     //'EBFSwAhEIo4dwekr6iw0ICcl1zRgnoMJIhIHTiqSQQZrseAy4eWYGP-z8v9wc52S86CzyE1CKcdkqVLM';
     $this->api_mode = $this->params->get('sandbox') ? 'sandbox' : 'live';
     $currency = trim($this->params->get('pp_api_currency'));
     if (empty($currency)) {
         $config = JComponentHelper::getParams('com_bookpro');
         $currency = $config->get('main_currency');
     }
     $this->currency = $currency;
 }
 function plgBookpropayment_check(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $language = JFactory::getLanguage();
     $language->load('plg_bookpro_payment_check', JPATH_ADMINISTRATOR);
 }
 function plgBookproPayment_offline(&$subject, $config)
 {
     parent::__construct($subject, $config);
 }