public function __construct() { parent::__construct(); // initialize error arrays $this->_errors = array(); $this->_jqErrors = array(); // some default values $this->addField('x_version', '3.1'); $this->addField('x_delim_data', 'TRUE'); $this->addField('x_delim_char', '|'); $this->addField('x_url', 'FALSE'); $this->addField('x_type', 'AUTH_CAPTURE'); $this->addField('x_method', 'CC'); $this->addField('x_relay_response', 'FALSE'); if (!(Cart66Setting::getValue('auth_username') && Cart66Setting::getValue('auth_url') && Cart66Setting::getValue('auth_trans_key'))) { throw new Cart66Exception('Invalid Authorize.net Configuration', 66510); } $gatewayUrl = Cart66Setting::getValue('auth_url'); if ($gatewayUrl == 'other') { $gatewayUrl = Cart66Setting::getValue('auth_url_other'); if (!$gatewayUrl) { throw new Cart66Exception('Invalid Gateway Configuration', 66511); } } }
public function __construct() { parent::__construct(); $mode = 'LIVE'; if (Cart66Setting::getValue('paypal_sandbox')) { $mode = 'TEST'; } $this->clearErrors(); // Set end point $apiEndPoint = 'https://api-3t.paypal.com/nvp'; if ("TEST" == $mode) { $apiEndPoint = 'https://api-3t.sandbox.paypal.com/nvp'; } $this->_apiEndPoint = $apiEndPoint; // Set express checkout url $expressCheckoutUrl = 'https://www.paypal.com/webscr&cmd=_express-checkout&token='; if ("TEST" == $mode) { $expressCheckoutUrl = 'https://www.sandbox.paypal.com/webscr&cmd=_express-checkout&token='; } $this->_apiExpressCheckoutUrl = $expressCheckoutUrl; // Set api data $this->_apiData['USER'] = Cart66Setting::getValue('paypalpro_api_username'); $this->_apiData['PWD'] = Cart66Setting::getValue('paypalpro_api_password'); $this->_apiData['SIGNATURE'] = Cart66Setting::getValue('paypalpro_api_signature'); $this->_apiData['VERSION'] = '65'; if (!($this->_apiData['USER'] && $this->_apiData['PWD'] && $this->_apiData['SIGNATURE'])) { throw new Cart66Exception('Invalid PayPal Express Configuration', 66501); } }
public function __construct() { parent::__construct(); if (!Cart66Setting::getValue('mijireh_access_key')) { throw new Cart66Exception('Invalid Mijireh Configuration', 66512); } }
public function __construct() { parent::__construct(); // initialize error arrays $this->_errors = array(); $this->_jqErrors = array(); $mode = 'LIVE'; if (Cart66Setting::getValue('mwarrior_test_mode')) { $mode = 'TEST'; } $this->clearErrors(); // Set end point and api credentials $apiPassphrase = Cart66Setting::getValue('mwarrior_api_passphrase'); $merchantUUID = Cart66Setting::getValue('mwarrior_merchant_uuid'); $apiKey = Cart66Setting::getValue('mwarrior_api_key'); $apiEndPoint = Cart66Setting::getValue('auth_url'); if ("TEST" == $mode) { $apiEndPoint = 'https://base.merchantwarrior.com/post/'; $apiPassphrase = Cart66Setting::getValue('mwarrior_test_api_passphrase'); $merchantUUID = Cart66Setting::getValue('mwarrior_test_merchant_uuid'); $apiKey = Cart66Setting::getValue('mwarrior_test_api_key'); } $this->_apiEndPoint = $apiEndPoint; // Set api data $this->_apiData['APIPASSPHRASE'] = $apiPassphrase; $this->_apiData['APIKEY'] = $apiKey; $this->_apiData['MERCHANTUUID'] = $merchantUUID; if (!($this->_apiData['APIPASSPHRASE'] && $this->_apiData['APIKEY'] && $this->_apiData['MERCHANTUUID'])) { throw new Cart66Exception('Invalid Merchant Warrior Configuration', 66540); } }
public function __construct() { parent::__construct(); // initialize error arrays $this->_errors = array(); $this->_jqErrors = array(); $mode = 'LIVE'; if (Cart66Setting::getValue('payleap_test_mode')) { $mode = 'TEST'; } $this->clearErrors(); // Set end point and api credentials $apiUsername = Cart66Setting::getValue('payleap_api_username'); $apiTransactionKey = Cart66Setting::getValue('payleap_transaction_key'); $apiEndPoint = Cart66Setting::getValue('auth_url'); if ("TEST" == $mode) { $apiEndPoint = 'https://uat.payleap.com/TransactServices.svc/ProcessCreditCard'; $apiUsername = Cart66Setting::getValue('payleap_test_api_username'); $apiTransactionKey = Cart66Setting::getValue('payleap_test_transaction_key'); } $this->_apiEndPoint = $apiEndPoint; // Set api data $this->_apiData['APIUSERNAME'] = $apiUsername; $this->_apiData['TRANSACTIONKEY'] = $apiTransactionKey; if (!($this->_apiData['APIUSERNAME'] && $this->_apiData['TRANSACTIONKEY'])) { throw new Cart66Exception('Invalid PayLeap Configuration', 66520); } }
public function __construct() { parent::__construct(); // initialize error arrays $this->_errors = array(); $this->_jqErrors = array(); $this->_apiKey = Cart66Setting::getValue('stripe_api_key'); $mode = 'LIVE'; if (Cart66Setting::getValue('stripe_test')) { $mode = 'TEST'; } if ($mode == 'TEST') { $this->_apiKey = Cart66Setting::getValue('stripe_test_api_key'); } if ($this->_apiKey == null) { throw new Cart66Exception('Invalid Stripe Configuration', 66505); } }
public function __construct() { parent::__construct(); // initialize error arrays $this->_errors = array(); $this->_jqErrors = array(); $mode = 'LIVE'; if (Cart66Setting::getValue('eway_sandbox')) { $mode = 'TEST'; } $this->clearErrors(); // Set end point $apiEndPoint = Cart66Setting::getValue('auth_url'); $customerId = Cart66Setting::getValue('eway_customer_id'); if ("TEST" == $mode) { $apiEndPoint = 'https://www.eway.com.au/gateway_cvn/xmltest/testpage.asp'; $customerId = Cart66Setting::getValue('eway_sandbox_customer_id'); } $this->_apiEndPoint = $apiEndPoint; $this->_customerId = $customerId; if (!$this->_customerId) { throw new Cart66Exception('Invalid eWay Configuration', 66530); } }