1; ///////////////////// MERITUS ////////////////////////////////////// /* public static $payment_class = array( "FILE_NAME"=>"meritus_payment.php", "CLASS_NAME"=>"MeritusPayment", "MERCHANT_USER"=>"10012", "MERCHANT_PASS"=>"c22a63ee-2e7a-4ace-96ac-0958dc8d953f", "MERCHANT_CURRENCY" => "EUR", "URL"=>"https://webservice.paymentxp.com/wh/webhost.aspx" ); /**/ ////////////////////// PRIMUS ////////////////////////////////////// // Testing: /* public static $payment_class = array( "FILE_NAME"=>"primus_payment.php", "CLASS_NAME"=>"PrimusPayment", "MERCHANT_USER"=>"demo", "MERCHANT_PASS"=>"password", "URL"=>"https://secure.primuspaymentgateway.com/api/transact.php" ); /**/ // Live: /* public static $payment_class = array( "FILE_NAME"=>"primus_payment.php", "CLASS_NAME"=>"PrimusPayment", "MERCHANT_USER"=>"...", "MERCHANT_PASS"=>"...", "URL"=>"https://secure.primuspaymentgateway.com/api/transact.php" ); /**/ ////////////////////// DINEROMAIL ////////////////////////////////////// /* public static $payment_class = array( "FILE_NAME"=>"dineromail_payment.php", "CLASS_NAME"=>"DineromailPayment", "SITE_PREFIX"=>"TS" ); /**/ ////////////////////// PAYAPAL ////////////////////////////////////// /* public static $payment_class = array( "FILE_NAME"=>"paypal_payment.php", "CLASS_NAME"=>"PaypalPayment", "SITE_PREFIX"=>"TS", "MERCHAND_EMAIL"=>"hbbvjg_1342534092_biz@abv.bg", ); /**/ ////////////////////// BOLETO ////////////////////////////////////// /* // Testing: public static $payment_class = array( "FILE_NAME"=>"boleto_payment.php", "CLASS_NAME"=>"BoletoPayment", "SITE_PREFIX"=>"TS", "URL"=>"https://www.ebanx.com/test/ws", "KEY"=>"cc3e87bdd843b1d3e17d7d578f61fa93f8622070b93139a0ccb93d455147d477796ff2677788a1e217255fc2bb2f82a5612f", "SEC_FILE_NAME"=>"primus_payment.php", "SEC_CLASS_NAME"=>"PrimusPayment", "MERCHANT_USER"=>"demo", "MERCHANT_PASS"=>"password", "SEC_URL"=>"https://secure.primuspaymentgateway.com/api/transact.php" ); /**/ /* // Live: public static $payment_class = array( "FILE_NAME"=>"boleto_payment.php", "CLASS_NAME"=>"BoletoPayment", "SITE_PREFIX"=>"TS", "URL"=>"https://www.ebanx.com/pay/ws", "KEY"=>"...", "SEC_FILE_NAME"=>"primus_payment.php", "SEC_CLASS_NAME"=>"PrimusPayment", "MERCHANT_USER"=>"...", "MERCHANT_PASS"=>"...", "SEC_URL"=>"https://secure.primuspaymentgateway.com/api/transact.php" ); /**/ ////////////////////// COD ////////////////////////////////////// //* public static $payment_class = array( "FILE_NAME"=>"cod_payment.php", "CLASS_NAME"=>"CashPayment" ); /**/ //////////////////////////////////////////////////////////////////// /* // PHP MAILER public static $mailer_class = array( "FILE_NAME"=>"php_mailer.php", "CLASS_NAME"=>"PhMailer" ); /**/ //* // EV MAILER public static $mailer_class = array( "FILE_NAME"=>"ev_mailer.php", "CLASS_NAME"=>"EvMailer", "TEMPLATE_ID"=>"e1091212-048b-4237-875f-9b2676022533" ////"TEMPLATE_ID"=>"3D9C808000377CEA/EdX7Cqkmmhhd8SA9MOPv2mjUXEUJFK3L-jjdeK4xK7WoKEk" // EN Receipt Template //"TEMPLATE_ID"=>"3D9C808000377CEA/EdX7Cqkmmhhd8SA9MOPv2mjUXEUJFK3L-jjdeK4xK7WoKEk" // EN Receipt Template ); /**/ public function money($value){ return sprintf(self::$currency_format, $value); } public function dollars($amount){ if(self::$currency!="USD"){ require dirname(dirname(dirname(__FILE__)))."/exchange/rate.php"; return $amount * rate(self::$currency); } return $amount; } public function exchange($amount, $_currency){ require dirname(dirname(dirname(__FILE__)))."/exchange/rate.php"; $result = $amount; if ($_currency != self::$currency) { if (self::$currency != 'USD') { $result *= rate(self::$currency); } if ($_currency != 'USD') { $result /= rate($_currency); } } return $result; } public static $title="VaricoFix"; //VaricoFix UK OFFICIAL - APID 81526 (merch:2736)// // public static $full_price = array(42,84,84); // public static $price = array(32,54,54); public static $full_price = array(52,104,104); public static $price = array(42,64,64); public static $quantity = array(1,2,3); public static $shipping = array(0,0,0); public static $full_shipping = array(7,14,34); /*First and second - values for shipping, third - value for second product with promo, fourth - full price for 2 bottles + shipping without promo. (ONLY for XX2 offers)*/ public static $seller_name="VaricoFix Inc."; public static $product_name="VaricoFix"; public static $product_name_short="VaricoFix"; public static $hash_salt='p(&%qthmr-r&^bhr-3b#%pvw-t*^%$*^%#f*&"b2____2-v8hxq^%&*'; public static $default_selection = 0; public static $merchand_id = 2736; public static $product_id = 1; public static $site_id = 1; public static $promo =1; public static $currency='EUR'; public static $currency_format='€ %.2f'; public static $site_email='support@varicofixasia.com'; public static $site_domain = 'http://www.varicofixasia.com/en/'; public static $external_vars = array('site_id', 'product_id', 'shipping_zvanec'); public static $external_params = array(); // public static $phone_prefix = '+421'; public static $delimiters = array('shipping_address' => '; ', 'billing_address' => '; '); public static $firm_name=''; public static $firm_address=''; public static $firm_city_zip=''; public static $firm_bulstat=''; private function __construct() { $this->host="10.64.186.29"; $this->user="globalasia_user"; $this->pass="Da74j6&gsMJyzrbv"; $this->dbname="globalasia_db"; } public static function getInstance(){ if(self::$instance==null){ self::$instance= new Config(); } return self::$instance; } }