Example #1
0
 function __construct(&$subject, $config)
 {
     $this->pluginConfig['notification'][0] = JText::sprintf('ALLOW_NOTIFICATIONS_FROM_X', 'Be2Bill');
     $this->pluginConfig['cancel_url'][2] = HIKASHOP_LIVE . "index.php?option=com_hikashop&ctrl=order&task=cancel_order";
     $this->pluginConfig['return_url'][2] = HIKASHOP_LIVE . "index.php?option=com_hikashop&ctrl=checkout&task=after_end";
     $this->pluginConfig['notify_url'][2] = HIKASHOP_LIVE . 'index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=' . $this->name . '&tmpl=component';
     return parent::__construct($subject, $config);
 }
Example #2
0
 function __construct(&$subject, $config)
 {
     $notif = HIKASHOP_LIVE . 'index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=' . $this->name . '&tmpl=component';
     $this->pluginConfig['notification'][0] = JText::sprintf('ALLOW_NOTIFICATIONS_FROM_X', 'Paypal');
     $lang = JFactory::getLanguage();
     $this->button = '<div id="paypal_express_button" style="width:144px; height:46px; margin-top:15px;"><a href="' . $notif . '&setExpressCheckout=1"><img src="https://fpdbs.paypal.com/dynamicimageweb?cmd=_dynamic-image&buttontype=ecshortcut&locale=' . str_replace('-', '_', $lang->get('tag')) . '" align="left"></a></div>';
     return parent::__construct($subject, $config);
 }
Example #3
0
 function __construct(&$subject, $config)
 {
     $lang = JFactory::getLanguage();
     $locale = strtoupper(substr($lang->get('tag'), 0, 2));
     $this->pluginConfig['notification'][0] = JText::sprintf('ALLOW_NOTIFICATIONS_FROM_X', 'Payza');
     $this->pluginConfig['status_url'][0] = JText::sprintf('STATUS_URL', 'Payza');
     $this->pluginConfig['status_url'][2] = htmlentities(HIKASHOP_LIVE . 'index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=alertpay&tmpl=component&lang=' . strtolower($locale));
     return parent::__construct($subject, $config);
 }
Example #4
0
 function __construct(&$subject, $config)
 {
     $this->pluginConfig['notification'][0] = JText::sprintf('ALLOW_NOTIFICATIONS_FROM_X', 'Mpesa');
     // This is the cancel URL of HikaShop that should be given to the payment gateway so that it can redirect to it when the user cancel the payment on the payment gateway page. That URL will automatically cancel the order of the user and redirect him to the checkout so that he can choose another payment method
     $this->pluginConfig['cancel_url'][2] = HIKASHOP_LIVE . "index.php?option=com_hikashop&ctrl=order&task=cancel_order";
     // This is the "thank you" or "return" URL of HikaShop that should be given to the payment gateway so that it can redirect to it when the payment of the user is valid. That URL will reinit some variables in the session like the cart and will then automatically redirect to the "return_url" parameter
     $this->pluginConfig['return_url'][2] = HIKASHOP_LIVE . "index.php?option=com_hikashop&ctrl=checkout&task=after_end";
     // This is the "notification" URL of HikaShop that should be given to the payment gateway so that it can send a request to that URL in order to tell HikaShop that the payment has been done (sometimes the payment gateway doesn't do that and passes the information to the return URL, in which case you need to use that notification URL as return URL and redirect the user to the HikaShop return URL at the end of the onPaymentNotification function)
     $this->pluginConfig['notify_url'][2] = HIKASHOP_LIVE . 'index.php?option=com_hikashop&ctrl=checkout&task=notify&amp;notif_payment=' . $this->name . '&tmpl=component';
     return parent::__construct($subject, $config);
 }
Example #5
0
 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
 }
Example #6
0
 function __construct(&$subject, $config)
 {
     $this->pluginConfig['ipaddress'][2] = $_SERVER['SERVER_ADDR'];
     return parent::__construct($subject, $config);
 }
Example #7
0
 function __construct(&$subject, $config)
 {
     $this->pluginConfig['url'][2] = HIKASHOP_LIVE . 'index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif_payment=googlewallet&amp;tmpl=component';
     return parent::__construct($subject, $config);
 }
Example #8
0
 function __construct(&$subject, $config)
 {
     $httpsHikashop = str_replace('http://', 'https://', HIKASHOP_LIVE);
     $this->pluginConfig['notif_url'][2] = $httpsHikashop . 'index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif_payment=googlecheckout&amp;tmpl=component';
     return parent::__construct($subject, $config);
 }
Example #9
0
 function __construct(&$subject, $config)
 {
     $this->pluginConfig['notify_url'][2] = HIKASHOP_LIVE . 'beanstream_params.php';
     return parent::__construct($subject, $config);
 }
Example #10
0
 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->config = hikashop_config();
 }