本文整理汇总了PHP中Currency::checkPaymentCurrencies方法的典型用法代码示例。如果您正苦于以下问题:PHP Currency::checkPaymentCurrencies方法的具体用法?PHP Currency::checkPaymentCurrencies怎么用?PHP Currency::checkPaymentCurrencies使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Currency
的用法示例。
在下文中一共展示了Currency::checkPaymentCurrencies方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
$this->name = 'bankwire';
$this->tab = 'payments_gateways';
$this->version = '1.0.8';
$this->author = 'PrestaShop';
$this->controllers = array('payment', 'validation');
$this->is_eu_compatible = 1;
$this->currencies = true;
$this->currencies_mode = 'checkbox';
$config = Configuration::getMultiple(array('BANK_WIRE_DETAILS', 'BANK_WIRE_OWNER', 'BANK_WIRE_ADDRESS'));
if (!empty($config['BANK_WIRE_OWNER'])) {
$this->owner = $config['BANK_WIRE_OWNER'];
}
if (!empty($config['BANK_WIRE_DETAILS'])) {
$this->details = $config['BANK_WIRE_DETAILS'];
}
if (!empty($config['BANK_WIRE_ADDRESS'])) {
$this->address = $config['BANK_WIRE_ADDRESS'];
}
$this->bootstrap = true;
parent::__construct();
$this->displayName = $this->l('Bank wire');
$this->description = $this->l('Accept payments for your products via bank wire transfer.');
$this->confirmUninstall = $this->l('Are you sure about removing these details?');
if (!isset($this->owner) || !isset($this->details) || !isset($this->address)) {
$this->warning = $this->l('Account owner and account details must be configured before using this module.');
}
if (!count(Currency::checkPaymentCurrencies($this->id))) {
$this->warning = $this->l('No currency has been set for this module.');
}
$this->extra_mail_vars = array('{bankwire_owner}' => Configuration::get('BANK_WIRE_OWNER'), '{bankwire_details}' => nl2br(Configuration::get('BANK_WIRE_DETAILS')), '{bankwire_address}' => nl2br(Configuration::get('BANK_WIRE_ADDRESS')));
}
示例2: __construct
public function __construct()
{
$this->name = 'payu';
$this->tab = 'payments_gateways';
$this->version = '1.2';
$this->author = 'PrestaShop';
$this->currencies = true;
$this->currencies_mode = 'radio';
parent::__construct();
$this->_errors = array();
$this->page = basename(__FILE__, '.php');
$this->displayName = $this->l('PayUMoney Checkout');
$this->description = $this->l('PayUMoney Checkout API implementation');
if (!sizeof(Currency::checkPaymentCurrencies($this->id))) {
$this->warning = $this->l('No currency set for this module');
}
/* For 1.4.3 and less compatibility */
$updateConfig = array('PS_OS_CHEQUE' => 1, 'PS_OS_PAYMENT' => 2, 'PS_OS_PREPARATION' => 3, 'PS_OS_SHIPPING' => 4, 'PS_OS_DELIVERED' => 5, 'PS_OS_CANCELED' => 6, 'PS_OS_REFUND' => 7, 'PS_OS_ERROR' => 8, 'PS_OS_OUTOFSTOCK' => 9, 'PS_OS_BANKWIRE' => 10, 'PS_OS_PAYPAL' => 11, 'PS_OS_WS_PAYMENT' => 12);
foreach ($updateConfig as $u => $v) {
if (!Configuration::get($u) || (int) Configuration::get($u) < 1) {
if (defined('_' . $u . '_') && (int) constant('_' . $u . '_') > 0) {
Configuration::updateValue($u, constant('_' . $u . '_'));
} else {
Configuration::updateValue($u, $v);
}
}
}
}
示例3: __construct
public function __construct()
{
$this->name = 'cheque';
$this->tab = 'payments_gateways';
$this->version = '2.3';
$this->author = 'PrestaShop';
$this->controllers = array('payment', 'validation');
$this->currencies = true;
$this->currencies_mode = 'checkbox';
$config = Configuration::getMultiple(array('CHEQUE_NAME', 'CHEQUE_ADDRESS'));
if (isset($config['CHEQUE_NAME'])) {
$this->chequeName = $config['CHEQUE_NAME'];
}
if (isset($config['CHEQUE_ADDRESS'])) {
$this->address = $config['CHEQUE_ADDRESS'];
}
$this->bootstrap = true;
parent::__construct();
$this->displayName = $this->l('Payments by check');
$this->description = $this->l('This module allows you to accept payments by check.');
$this->confirmUninstall = $this->l('Are you sure you want to delete these details?');
if (!isset($this->chequeName) || !isset($this->address) || empty($this->chequeName) || empty($this->address)) {
$this->warning = $this->l('The "Pay to the order of" and "Address" fields must be configured before using this module.');
}
if (!count(Currency::checkPaymentCurrencies($this->id))) {
$this->warning = $this->l('No currency has been set for this module.');
}
$this->extra_mail_vars = array('{cheque_name}' => Configuration::get('CHEQUE_NAME'), '{cheque_address}' => Configuration::get('CHEQUE_ADDRESS'), '{cheque_address_html}' => str_replace("\n", '<br />', Configuration::get('CHEQUE_ADDRESS')));
}
示例4: __construct
public function __construct()
{
$this->name = 'ps_checkpayment';
$this->tab = 'payments_gateways';
$this->version = '1.0.8';
$this->author = 'PrestaShop';
$this->controllers = array('payment', 'validation');
$this->currencies = true;
$this->currencies_mode = 'checkbox';
$config = Configuration::getMultiple(array('CHEQUE_NAME', 'CHEQUE_ADDRESS'));
if (isset($config['CHEQUE_NAME'])) {
$this->checkName = $config['CHEQUE_NAME'];
}
if (isset($config['CHEQUE_ADDRESS'])) {
$this->address = $config['CHEQUE_ADDRESS'];
}
$this->bootstrap = true;
parent::__construct();
$this->displayName = $this->trans('Payments by check', array(), 'Modules.CheckPayment.Admin');
$this->description = $this->trans('This module allows you to accept payments by check.', array(), 'Modules.CheckPayment.Admin');
$this->confirmUninstall = $this->trans('Are you sure you want to delete these details?', array(), 'Modules.CheckPayment.Admin');
$this->ps_versions_compliancy = array('min' => '1.7.0.0', 'max' => _PS_VERSION_);
if (!isset($this->checkName) || !isset($this->address) || empty($this->checkName) || empty($this->address)) {
$this->warning = $this->trans('The "Payee" and "Address" fields must be configured before using this module.', array(), 'Modules.CheckPayment.Admin');
}
if (!count(Currency::checkPaymentCurrencies($this->id))) {
$this->warning = $this->trans('No currency has been set for this module.', array(), 'Modules.CheckPayment.Admin');
}
$this->extra_mail_vars = array('{check_name}' => Configuration::get('CHEQUE_NAME'), '{check_address}' => Configuration::get('CHEQUE_ADDRESS'), '{check_address_html}' => Tools::nl2br(Configuration::get('CHEQUE_ADDRESS')));
}
示例5: __construct
public function __construct()
{
$this->name = 'bankwire';
$this->tab = 'Payment';
$this->version = '0.5';
$this->currencies = true;
$this->currencies_mode = 'checkbox';
$config = Configuration::getMultiple(array('BANK_WIRE_DETAILS', 'BANK_WIRE_OWNER', 'BANK_WIRE_ADDRESS'));
if (isset($config['BANK_WIRE_OWNER'])) {
$this->owner = $config['BANK_WIRE_OWNER'];
}
if (isset($config['BANK_WIRE_DETAILS'])) {
$this->details = $config['BANK_WIRE_DETAILS'];
}
if (isset($config['BANK_WIRE_ADDRESS'])) {
$this->address = $config['BANK_WIRE_ADDRESS'];
}
parent::__construct();
$this->displayName = $this->l('Bank Wire');
$this->description = $this->l('Accept payments by bank wire');
$this->confirmUninstall = $this->l('Are you sure you want to delete your details?');
if (!isset($this->owner) or !isset($this->details) or !isset($this->address)) {
$this->warning = $this->l('Account owner and details must be configured in order to use this module correctly');
}
if (!sizeof(Currency::checkPaymentCurrencies($this->id))) {
$this->warning = $this->l('No currency set for this module');
}
}
示例6: __construct
function __construct()
{
$this->name = 'cheque';
$this->tab = 'Payment';
$this->version = 2.2;
$this->currencies = true;
$this->currencies_mode = 'checkbox';
$config = Configuration::getMultiple(array('CHEQUE_NAME', 'CHEQUE_ADDRESS'));
if (isset($config['CHEQUE_NAME'])) {
$this->chequeName = $config['CHEQUE_NAME'];
}
if (isset($config['CHEQUE_ADDRESS'])) {
$this->address = $config['CHEQUE_ADDRESS'];
}
parent::__construct();
$this->displayName = $this->l('Cheque');
$this->description = $this->l('Module for accepting payments by cheque');
$this->confirmUninstall = $this->l('Are you sure you want to delete your details ?');
if (!isset($this->chequeName) or !isset($this->address)) {
$this->warning = $this->l('\'To the order of\' and address must be configured in order to use this module correctly');
}
if (!sizeof(Currency::checkPaymentCurrencies($this->id))) {
$this->warning = $this->l('No currency set for this module');
}
}
示例7: __construct
public function __construct()
{
$this->name = 'sign2pay';
$this->tab = 'payments_gateways';
$this->version = '0.1.0';
$this->author = 'Berkan Düzgün';
$this->controllers = array('payment', 'validation');
$this->availableCurrencies = array('EUR');
$config = Configuration::getMultiple(array('SIGN2PAY_APPLICATION_TOKEN', 'SIGN2PAY_MERCHANT_ID', 'SIGN2PAY_API_TOKEN'));
if (!empty($config['SIGN2PAY_MERCHANT_ID'])) {
$this->merchandId = $config['SIGN2PAY_MERCHANT_ID'];
}
if (!empty($config['SIGN2PAY_APPLICATION_TOKEN'])) {
$this->applicationToken = $config['SIGN2PAY_APPLICATION_TOKEN'];
}
if (!empty($config['SIGN2PAY_API_TOKEN'])) {
$this->apiToken = $config['SIGN2PAY_API_TOKEN'];
}
parent::__construct();
$this->displayName = $this->l('Sign2Pay');
$this->description = $this->l('Sign2Pay payment method.');
$this->confirmUninstall = $this->l('Are you sure about removing these details?');
if (!isset($this->merchandId) || !isset($this->applicationToken) || !isset($this->apiToken)) {
$this->warning = $this->l('API credentials must be configured before using this module.');
}
if (!count(Currency::checkPaymentCurrencies($this->id))) {
$this->warning = $this->l('No currency has been set for this module.');
}
$this->extra_mail_vars = array('{sign2pay_merchant_id}' => Configuration::get('SIGN2PAY_MERCHANT_ID'), '{sign2pay_application_token}' => nl2br(Configuration::get('SIGN2PAY_APPLICATION_TOKEN')), '{sign2pay_api_token}' => nl2br(Configuration::get('SIGN2PAY_API_TOKEN')));
}
示例8: __construct
public function __construct()
{
if (!defined('_PS_VERSION_')) {
exit;
}
include_once dirname(__FILE__) . '/classes/mws.php';
include_once dirname(__FILE__) . '/classes/oc.php';
include_once dirname(__FILE__) . '/classes/partner.php';
include_once dirname(__FILE__) . '/classes/ymlclass.php';
include_once dirname(__FILE__) . '/classes/hforms.php';
include_once dirname(__FILE__) . '/classes/callback.php';
include_once dirname(__FILE__) . '/lib/api.php';
include_once dirname(__FILE__) . '/lib/external_payment.php';
$this->name = 'yamodule';
$this->tab = 'payments_gateways';
$this->version = '1.3.1';
$this->author = 'Яндекс.Деньги';
$this->need_instance = 1;
$this->bootstrap = 1;
$this->currencies = true;
$this->currencies_mode = 'checkbox';
parent::__construct();
$this->cryptor = $this->getCryptor();
$this->displayName = $this->l('Y.CMS Prestashop');
$this->description = $this->l('Yandex.Money, Yandex.Service, Yandex.Metrika, Yandex.Market Orders in the Market');
$this->confirmUninstall = $this->l('Really uninstall the module?');
if (!sizeof(Currency::checkPaymentCurrencies($this->id))) {
$this->warning = $this->l('There is no set currency for your module!');
}
}
示例9: __construct
public function __construct()
{
$this->name = 'gcheckout';
$this->tab = 'payments_gateways';
$this->version = '1.2';
$this->author = 'PrestaShop';
$this->currencies = true;
$this->currencies_mode = 'radio';
parent::__construct();
$this->displayName = $this->l('Google Checkout');
$this->description = $this->l('Google Checkout API implementation');
if (!sizeof(Currency::checkPaymentCurrencies($this->id))) {
$this->warning = $this->l('No currency set for this module');
}
/* For 1.4.3 and less compatibility */
$updateConfig = array('PS_OS_CHEQUE', 'PS_OS_PAYMENT', 'PS_OS_PREPARATION', 'PS_OS_SHIPPING', 'PS_OS_CANCELED', 'PS_OS_REFUND', 'PS_OS_ERROR', 'PS_OS_OUTOFSTOCK', 'PS_OS_BANKWIRE', 'PS_OS_PAYPAL', 'PS_OS_WS_PAYMENT');
if (!Configuration::get('PS_OS_PAYMENT')) {
foreach ($updateConfig as $u) {
if (!Configuration::get($u) && defined('_' . $u . '_')) {
Configuration::updateValue($u, constant('_' . $u . '_'));
}
}
}
/** Backward compatibility */
require _PS_MODULE_DIR_ . $this->name . '/backward_compatibility/backward.php';
}
示例10: __construct
public function __construct()
{
$this->name = 'hipay_tpp';
$this->tab = 'payments_gateways';
$this->version = '1.3.0';
$this->module_key = 'e25bc8f4f9296ef084abf448bca4808a';
$this->author = 'HiPay';
$this->currencies = true;
$this->currencies_mode = 'checkbox';
$config = Configuration::getMultiple(array('HIPAY_API_USERNAME', 'HIPAY_API_PASSWORD', 'HIPAY_TEST_API_USERNAME', 'HIPAY_TEST_API_PASSWORD', 'HIPAY_TEST_MODE', 'HIPAY_PAYMENT_MODE', 'HIPAY_CHALLENGE_URL', 'HIPAY_CSS_URL', 'HIPAY_ALLOWED_CARDS', 'HIPAY_ALLOWED_LOCAL_CARDS', 'HIPAY_THREEDSECURE', 'HIPAY_THREEDSECURE_AMOUNT', 'HIPAY_MANUALCAPTURE', 'HIPAY_MEMORIZE', 'HIPAY_TEMPLATE_MODE', 'HIPAY_SELECTOR_MODE', 'HIPAY_IFRAME_WIDTH', 'HIPAY_IFRAME_HEIGHT'));
// For callbacks
$config = Configuration::getMultiple(array('HIPAY_PROCESSING_QUEUE', 'HIPAY_LAST_PROCESS'));
$this->bootstrap = true;
parent::__construct();
$this->displayName = $this->l('HiPay Fullservice');
$this->description = $this->l('Accept transactions worldwide on any device with local & international payment methods. Benefit from a next-gen fraud protection tool.');
$this->confirmUninstall = $this->l('Are you sure you wish to uninstall HiPay Fullservice?');
if (!count(Currency::checkPaymentCurrencies($this->id))) {
$this->warning = $this->l('No currency has been set for this module.');
}
/** Backward compatibility */
if (_PS_VERSION_ < '1.5') {
require _PS_MODULE_DIR_ . $this->name . '/backward_compatibility/backward.php';
}
global $smarty;
$smarty->assign(array('hipay_version' => $this->version));
}
示例11: __construct
public function __construct()
{
$this->name = 'bankwire';
$this->tab = 'payments_gateways';
$this->version = '0.5';
$this->author = 'PrestaShop';
$this->currencies = true;
$this->currencies_mode = 'checkbox';
$config = Configuration::getMultiple(array('BANK_WIRE_DETAILS', 'BANK_WIRE_OWNER', 'BANK_WIRE_ADDRESS'));
if (isset($config['BANK_WIRE_OWNER'])) {
$this->owner = $config['BANK_WIRE_OWNER'];
}
if (isset($config['BANK_WIRE_DETAILS'])) {
$this->details = $config['BANK_WIRE_DETAILS'];
}
if (isset($config['BANK_WIRE_ADDRESS'])) {
$this->address = $config['BANK_WIRE_ADDRESS'];
}
parent::__construct();
$this->displayName = $this->l('Bank Wire');
$this->description = $this->l('Accept payments by bank wire.');
$this->confirmUninstall = $this->l('Are you sure you want to delete your details?');
if (!isset($this->owner) || !isset($this->details) || !isset($this->address)) {
$this->warning = $this->l('Account owner and details must be configured in order to use this module correctly.');
}
if (!count(Currency::checkPaymentCurrencies($this->id))) {
$this->warning = $this->l('No currency set for this module');
}
$this->extra_mail_vars = array('{bankwire_owner}' => Configuration::get('BANK_WIRE_OWNER'), '{bankwire_details}' => nl2br(Configuration::get('BANK_WIRE_DETAILS')), '{bankwire_address}' => nl2br(Configuration::get('BANK_WIRE_ADDRESS')));
}
示例12: __construct
public function __construct()
{
$this->name = 'cheque';
$this->tab = 'payments_gateways';
$this->version = '2.3';
$this->author = 'PrestaShop';
$this->currencies = true;
$this->currencies_mode = 'checkbox';
$config = Configuration::getMultiple(array('CHEQUE_NAME', 'CHEQUE_ADDRESS'));
if (isset($config['CHEQUE_NAME'])) {
$this->chequeName = $config['CHEQUE_NAME'];
}
if (isset($config['CHEQUE_ADDRESS'])) {
$this->address = $config['CHEQUE_ADDRESS'];
}
parent::__construct();
$this->displayName = $this->l('Check');
$this->description = $this->l('Module for accepting payments by check.');
$this->confirmUninstall = $this->l('Are you sure you want to delete your details ?');
if ($this->active && (!isset($this->chequeName) || !isset($this->address) || empty($this->chequeName) || empty($this->address))) {
$this->warning = $this->l('\'To the order of\' and address must be configured in order to use this module correctly.');
}
if ($this->active && !count(Currency::checkPaymentCurrencies($this->id))) {
$this->warning = $this->l('No currency set for this module');
}
$this->extra_mail_vars = array('{cheque_name}' => Configuration::get('CHEQUE_NAME'), '{cheque_address}' => Configuration::get('CHEQUE_ADDRESS'), '{cheque_address_html}' => str_replace("\n", '<br />', Configuration::get('CHEQUE_ADDRESS')));
}
示例13: __construct
/**
* Construct
*/
public function __construct()
{
$this->name = 'realexredirect';
$this->tab = 'payments_gateways';
$this->version = '1.4';
$this->author = 'Coccinet';
$this->bout_valide = $this->l('Validate');
$this->bout_suppr = $this->l('Do you want to delete your stored card ?');
$this->currencies = true;
$this->currencies_mode = 'checkbox';
$config = Configuration::getMultiple(array('REALEX_REDIRECT_MERCHANT_ID', 'REALEX_REDIRECT_SHARED_SECRET', 'REALEX_REDIRECT_SETTLEMENT', 'REALEX_REDIRECT_SUBACCOUNT', 'REALEX_REDIRECT_REALVAULT', 'REALEX_REDIRECT_CVN', 'REALEX_REDIRECT_LIABILITY'));
if (isset($config['REALEX_REDIRECT_MERCHANT_ID'])) {
$this->merchant_id = $config['REALEX_REDIRECT_MERCHANT_ID'];
}
if (isset($config['REALEX_REDIRECT_SHARED_SECRET'])) {
$this->shared_secret = $config['REALEX_REDIRECT_SHARED_SECRET'];
}
if (isset($config['REALEX_REDIRECT_SETTLEMENT'])) {
$this->settlement = $config['REALEX_REDIRECT_SETTLEMENT'];
}
if (isset($config['REALEX_REDIRECT_REALVAULT'])) {
$this->realvault = $config['REALEX_REDIRECT_REALVAULT'];
}
if (isset($config['REALEX_REDIRECT_CVN'])) {
$this->cvn = $config['REALEX_REDIRECT_CVN'];
}
if (isset($config['REALEX_REDIRECT_LIABILITY'])) {
$this->liability = $config['REALEX_REDIRECT_LIABILITY'];
}
parent::__construct();
if (Configuration::get('PS_SSL_ENABLED')) {
$this->url_validation = Tools::getShopDomainSsl(true, true) . __PS_BASE_URI__ . 'module/' . $this->name . '/validation';
} else {
$this->url_validation = Tools::getShopDomain(true, true) . __PS_BASE_URI__ . 'module/' . $this->name . '/validation';
}
$this->displayName = $this->l('Realex Payments');
$this->description = $this->l('Use Realex Payments as your payments service provider.');
$this->confirmUninstall = $this->l('Are you sure you want to delete this information?');
$this->ps_versions_compliancy = array('min' => '1.5', 'max' => _PS_VERSION_);
if (!function_exists('curl_version')) {
$this->warning = $this->l('cURL librairy is not available.');
} elseif (!Configuration::get('PS_REWRITING_SETTINGS')) {
$this->warning = $this->l('URL Rewriting must be enabled before using this module.');
} elseif (!isset($this->merchant_id) || empty($this->shared_secret) || !isset($this->settlement) || !isset($this->realvault) || !isset($this->cvn) || !isset($this->liability)) {
$this->warning = $this->l('Realex Payment details must be configured before using this module.');
} elseif (!$this->getTableAccount()) {
$this->warning = $this->l('You have to configure at least one subaccount');
}
if (!count(Currency::checkPaymentCurrencies($this->id))) {
$this->warning = $this->l('No currency has been set for this module.');
}
/** Backward compatibility */
if (version_compare(_PS_VERSION_, '1.5', '<')) {
require _PS_MODULE_DIR_ . $this->name . '/backward_compatibility/backward.php';
}
}
示例14: __construct
function __construct()
{
$this->name = 'gcheckout';
$this->tab = 'Payment';
$this->version = 1.0;
$this->currencies = true;
$this->currencies_mode = 'radio';
parent::__construct();
$this->displayName = $this->l('Google Checkout');
$this->description = $this->l('Google Checkout API implementation');
if (!sizeof(Currency::checkPaymentCurrencies($this->id))) {
$this->warning = $this->l('No currency set for this module');
}
}
示例15: __construct
public function __construct()
{
$this->name = 'veritransinstallment';
$this->tab = 'payments_gateways';
$this->version = '1.0';
$this->author = 'Veritrans';
$this->bootstrap = true;
$this->currencies = true;
$this->currencies_mode = 'checkbox';
$this->veritrans_convenience_fee = 0;
// key length must be between 0-32 chars to maintain compatibility with <= 1.5
$this->config_keys = array('VI_CLIENT_KEY', 'VI_SERVER_KEY', 'VI_API_VERSION', 'VI_PAYMENT_TYPE', 'VI_3D_SECURE', 'VI_KURS', 'VI_CONVENIENCE_FEE', 'VI_PAYMENT_SUCCESS_STATUS_MAP', 'VI_PAYMENT_FAILURE_STATUS_MAP', 'VI_PAYMENT_CHALLENGE_STATUS_MAP', 'VI_ENVIRONMENT', 'VI_SANITIZED', 'VI_ENABLE_INSTALLMENT', 'VI_INSTALLMENTS_BNI', 'VI_INSTALLMENTS_TERM', 'VI_BIN_FILTER', 'VI_DISPLAY_NAME', 'VI_AMOUNT_THRESHOLD');
foreach (array('BNI', 'MANDIRI') as $bank) {
foreach (array(3, 6, 12) as $months) {
array_push($this->config_keys, 'VI_INSTALLMENTS_' . $bank . '_' . $months);
}
}
$config = Configuration::getMultiple($this->config_keys);
foreach ($this->config_keys as $key) {
if (isset($config[$key])) {
$this->{strtolower($key)} = $config[$key];
}
}
if (isset($config['VI_KURS'])) {
$this->veritrans_kurs = $config['VI_KURS'];
} else {
Configuration::set('VI_KURS', 10000);
}
if (!isset($config['VI_DISPLAY_NAME'])) {
Configuration::set('VI_DISPLAY_NAME', "Credit Card Installment");
}
if (!isset($config['VI_AMOUNT_THRESHOLD']) || strlen($config['VI_AMOUNT_THRESHOLD']) < 1) {
Configuration::set('VI_AMOUNT_THRESHOLD', "500000");
}
Configuration::set('VI_API_VERSION', 2);
Configuration::set('VI_PAYMENT_TYPE', 'vtweb');
if (!isset($config['VI_SANITIZED'])) {
Configuration::set('VI_SANITIZED', 0);
}
parent::__construct();
$this->displayName = $this->l('Veritrans Offline Installment');
$this->description = $this->l('Accept offline installment payments for your products via Veritrans.');
$this->confirmUninstall = $this->l('Are you sure about uninstalling Veritrans offline installment?');
if (!count(Currency::checkPaymentCurrencies($this->id))) {
$this->warning = $this->l('No currency has been set for this module.');
}
// Retrocompatibility
$this->initContext();
}