本文整理汇总了PHP中hikashopPaymentPlugin::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP hikashopPaymentPlugin::__construct方法的具体用法?PHP hikashopPaymentPlugin::__construct怎么用?PHP hikashopPaymentPlugin::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类hikashopPaymentPlugin
的用法示例。
在下文中一共展示了hikashopPaymentPlugin::__construct方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
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);
}
示例2:
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);
}
示例3: strtoupper
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¬if_payment=alertpay&tmpl=component&lang=' . strtolower($locale));
return parent::__construct($subject, $config);
}
示例4:
function __construct(&$subject, $config)
{
parent::__construct($subject, $config);
}
示例5:
function __construct(&$subject, $config)
{
$this->pluginConfig['ipaddress'][2] = $_SERVER['SERVER_ADDR'];
return parent::__construct($subject, $config);
}
示例6:
function __construct(&$subject, $config)
{
$this->pluginConfig['url'][2] = HIKASHOP_LIVE . 'index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=googlewallet&tmpl=component';
return parent::__construct($subject, $config);
}
示例7:
function __construct(&$subject, $config)
{
$httpsHikashop = str_replace('http://', 'https://', HIKASHOP_LIVE);
$this->pluginConfig['notif_url'][2] = $httpsHikashop . 'index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=googlecheckout&tmpl=component';
return parent::__construct($subject, $config);
}
示例8:
function __construct(&$subject, $config)
{
parent::__construct($subject, $config);
$this->config = hikashop_config();
}