本文整理汇总了PHP中Mage_Payment_Model_Method_Abstract::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Payment_Model_Method_Abstract::__construct方法的具体用法?PHP Mage_Payment_Model_Method_Abstract::__construct怎么用?PHP Mage_Payment_Model_Method_Abstract::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Payment_Model_Method_Abstract
的用法示例。
在下文中一共展示了Mage_Payment_Model_Method_Abstract::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
if ($this->isWeixinBrowser()) {
$this->_canUseCheckout = false;
}
parent::__construct();
}
示例2: __construct
public function __construct()
{
parent::__construct();
if ($this->pm_id) {
$this->_code = $this->_code . '_' . str_replace('_', '', $this->pm_id);
}
}
示例3: __construct
public function __construct()
{
parent::__construct();
$this->_canCapture = $this->isFeatureSupported("Capturing");
$this->_canCapturePartial = $this->isFeatureSupported("Capturing");
$this->_canRefund = $this->isFeatureSupported("Refund");
$this->_canRefundInvoicePartial = $this->isFeatureSupported("Refund");
$this->_canUseInternal = $this->isFeatureSupported("Moto");
}
示例4: __construct
/**
* @param array $params
*/
public function __construct($params = array())
{
parent::__construct($params);
if (!empty($params) && isset($params['caller_method'])) {
// Set '_callerMethod' property
$this->_callerMethod = $params['caller_method'];
} else {
Mage::throwException(Mage::helper('cls_paypal')->__('Internal error: cannot initialize the payment method.'));
}
}
示例5: __construct
public function __construct()
{
$this->pfConfig = Payfort_Fort_Config::getInstance();
// //$this->_code = PAYFORT_FORT_PAYMENT_METHOD_CC;
if ($this->pfConfig->getCcIntegrationType() == PAYFORT_FORT_INTEGRATION_TYPE_MERCAHNT_PAGE2) {
$this->_formBlockType = 'payfort/form_cc_notsaved';
$this->_infoBlockType = 'payfort/info_cc_notsaved';
} else {
$this->_formBlockType = 'payfort/form_gateway';
}
parent::__construct();
}
示例6: __construct
public function __construct()
{
$this->_helper = Mage::helper('capayable');
$public_key = Mage::getStoreConfig('capayable/capayable/public_key');
$secret_key = Mage::getStoreConfig('capayable/capayable/secret_key');
/**
* Initialize new api client
* @var Tritac_CapayableApiClient_Client _client
*/
$this->_client = new Tritac_CapayableApiClient_Client($public_key, $secret_key, $this->_helper->getMode());
parent::__construct();
}
示例7: __construct
public function __construct()
{
parent::__construct();
$this->_isBackendOrder = Mage::helper('ewayrapid')->isBackendOrder();
$this->_connectionType = Mage::getStoreConfig('payment/ewayrapid_general/connection_type');
if (!$this->_isBackendOrder) {
if ($this->_connectionType === Eway_Rapid31_Model_Config::CONNECTION_TRANSPARENT) {
$this->_infoBlockType = 'ewayrapid/info_transparent_notsaved';
$this->_formBlockType = 'ewayrapid/form_transparent_notsaved';
} elseif ($this->_connectionType === Eway_Rapid31_Model_Config::CONNECTION_SHARED_PAGE) {
$this->_infoBlockType = 'ewayrapid/info_sharedpage_notsaved';
$this->_formBlockType = 'ewayrapid/form_sharedpage_notsaved';
}
}
}
示例8: __construct
/**
* Construct
*/
public function __construct()
{
parent::__construct();
$this->_helper = Mage::getSingleton('PagSeguro_PagSeguro_Helper_Data');
}
示例9: __construct
public function __construct()
{
bcscale(0);
parent::__construct();
}
示例10: __construct
public function __construct()
{
$this->_canUseCheckout = false;
parent::__construct();
}
示例11: __construct
public function __construct()
{
$this->sqlModel = Mage::getModel('icecore/mysql4_iceCore');
$this->ic_order = Mage::getModel('iceadvanced/order');
parent::__construct();
}
示例12: __construct
/**
* Model constructor
*
* @return void
*/
public function __construct()
{
$this->getConfig();
$this->_projectId = $this->_config->getProjectId();
$this->_apiKey = $this->_config->getApiKey();
$this->_language = $this->_config->getLanguage();
$this->_currency = $this->_config->getCurrentCurrency();
$this->_merchantId = $this->_config->getMerchantId();
$this->_customerType = $this->_config->getCustomerType();
$this->_countries = $this->_config->getCountries();
return parent::__construct();
}
示例13: __construct
/**
* Construct
*/
public function __construct()
{
parent::__construct();
$this->_helper = Mage::helper('pagseguro');
}
示例14: __construct
public function __construct()
{
parent::__construct();
$this->initializeOpenPayUConfiguration();
}
示例15: __construct
public function __construct()
{
$called = true;
parent::__construct();
}