Esempio n. 1
0
 public function __construct()
 {
     parent::__construct();
     if (defined('IDEAL_HASH_KEY')) {
         $this->setHashKey(IDEAL_HASH_KEY);
     } elseif (defined('IDEAL_PRIVATE_KEY')) {
         $this->setHashKey(IDEAL_PRIVATE_KEY);
     }
     if (defined('IDEAL_AQUIRER')) {
         if ($this->paymentmode == 'test') {
             $this->setAquirer(IDEAL_AQUIRER, IDEAL_TEST_MODE);
         } else {
             $this->setAquirer(IDEAL_AQUIRER);
         }
     }
     if (defined('IDEAL_MERCHANT_ID')) {
         if (defined('IDEAL_SUB_ID')) {
             $this->setMerchant(IDEAL_MERCHANT_ID, IDEAL_SUB_ID);
         } else {
             $this->setMerchant(IDEAL_MERCHANT_ID);
         }
     }
     if (defined('IDEAL_URL_CANCEL')) {
         $this->setUrlCancel(IDEAL_URL_CANCEL);
     }
     if (defined('IDEAL_URL_ERROR')) {
         $this->setUrlError(IDEAL_URL_ERROR);
     }
     if (defined('IDEAL_URL_SUCCESS')) {
         $this->setUrlSuccess(IDEAL_URL_SUCCESS);
     }
 }
 /**
  * @inherit
  */
 public function __construct(array $properties = array())
 {
     parent::__construct($properties);
     if (empty($this->contextObj)) {
         $this->contextObj = new NullPaymentContext();
     }
 }
Esempio n. 3
0
 function __construct()
 {
     global $sage_M_id, $sage_M_key, $sagemode, $godaddy_hosting;
     parent::__construct();
     $this->M_id = $sage_M_id;
     $this->M_key = $sage_M_key;
     $this->godaddy_hosting = $godaddy_hosting;
 }
 public function __construct(array $params = [])
 {
     $this->type = "CreditCard";
     $this->authenticate = Braspag::$defaultAuthenticate;
     $this->capture = Braspag::$defaultCapture;
     $this->interest = Braspag::$defaultInterest;
     parent::__construct($params);
 }
Esempio n. 5
0
 public function __construct()
 {
     global $partner_id, $api_host, $api_port;
     parent::__construct();
     $this->partner_id = $partner_id;
     $this->api_host = 'ssl://secure.mollie.nl';
     $this->api_port = 443;
     $this->setTestmode($this->paymentmode == 'test');
 }
Esempio n. 6
0
 function NetDeposit()
 {
     global $netdeposit_clientid, $netdeposit_clientcode, $netdeposit_acctnum, $godaddy_hosting;
     parent::__construct();
     $this->clientId = $netdeposit_clientid;
     $this->clientCode = $netdeposit_clientcode;
     //  $this->acctNum = $netdeposit_acctnum;
     $this->godaddy_hosting = $godaddy_hosting;
 }
Esempio n. 7
0
 function psigate()
 {
     global $psi_storeid, $godaddy_hosting, $psitype, $psi_passphrase, $psi_merchantId;
     parent::__construct();
     $file = $psitype == "live" ? JPATH_SITE . '/components/com_dtregister/lib/payment/psigate/hosted.php' : JPATH_SITE . '/components/com_dtregister/lib/payment/psigate/live.php';
     require_once $file;
     $class = $psitype == "live" ? 'Hosted' : 'Live';
     // $class = 'Hosted';
     $this->paymentObj = new $class();
     $this->bywebservice = $this->paymentObj->bywebservice;
     $this->paymentObj->init($this->paymentmode);
     $this->godaddy_hosting = $godaddy_hosting;
     //  $this->paymentObj->setOrderID('123456'); // Order ID.  Leave blank to have PSiGate assign
 }
Esempio n. 8
0
 function Eway()
 {
     global $eway_customerid, $ewaymode, $godaddy_hosting, $ewaytype;
     parent::__construct();
     $this->eway_customerid = $eway_customerid;
     $this->ewaymode = $this->paymentmode;
     $this->ewaytype = $ewaytype;
     $file = $ewaytype == "live" ? JPATH_SITE . '/components/com_dtregister/lib/payment/eway/EwayPaymentLive.php' : JPATH_SITE . '/components/com_dtregister/lib/payment/eway/EwayPaymentHosted.php';
     require_once $file;
     $class = $ewaytype == "live" ? 'EwayPaymentLive' : 'EwayPaymentHosted';
     $gateway = $this->ewaymode == 'test' ? false : true;
     $this->payEway = new $class($eway_customerid, 'REAL_TIME', $gateway);
     $this->bywebservice = $this->payEway->bywebservice;
     $this->godaddy_hosting = $godaddy_hosting;
 }
Esempio n. 9
0
 function __construct()
 {
     global $Itemid;
     global $godaddy_hosting, $safe_pay_account_id, $currency_code;
     parent::__construct();
     $this->godaddy_hosting = $godaddy_hosting;
     $this->url = 'https://www.saferpay.com/hosting/';
     //$this->paymentmode = "test";
     if ($this->paymentmode == 'test') {
         $this->account_id = '99867-94913159';
     } else {
         $this->account_id = $safe_pay_account_id;
     }
     $this->set_param('ACCOUNTID', $this->account_id);
     $this->currency_code = $currency_code;
 }
 function __construct()
 {
     global $usaepay_key, $authnetmode, $transkey, $godaddy_hosting;
     parent::__construct();
     $this->godaddy_hosting = $godaddy_hosting;
     $this->url = $this->paymentmode == 'test' ? "https://sandbox.usaepay.com/gateway/transact.dll" : "https://secure.usaepay.com/gateway/transact.dll";
     $this->x_test_request = $this->paymentmode == 'test' ? 'TRUE' : 'FALSE';
     $this->x_login = $usaepay_key;
     $this->x_version = "3.1";
     $this->x_tran_key = '';
     $this->x_delim_char = "|";
     $this->x_delim_data = "TRUE";
     $this->x_url = "FALSE";
     $this->x_method = "CC";
     $this->x_relay_response = "FALSE";
     $this->x_type = "AUTH_CAPTURE";
 }
Esempio n. 11
0
 /**
  * Class constructor
  *
  * @access public
  * @param string $merchantId Merchant ID.
  * @param string $serverType Server type - 'sandbox' or 'checkout'.
  * @param string $currency Currency.
  * @return object
  */
 function GoogleCheckout()
 {
     global $googlemerchid, $googlemode, $currency_code, $googleapikey;
     parent::__construct();
     $this->_merchantId = $googlemerchid;
     $this->merchant_id = $this->_merchantId;
     $this->merchant_key = $googleapikey;
     $this->_serverType = $this->paymentmode != 'test' ? 'checkout' : 'sandbox';
     if ($this->_serverType == 'sandbox') {
         $this->server_url = "https://sandbox.google.com/checkout/";
     } else {
         $this->server_url = "https://checkout.google.com/";
     }
     $this->_currency = $currency_code;
     $this->schema_url = "http://checkout.google.com/schema/2";
     $this->base_url = $this->server_url . "api/checkout/v2/";
     $this->checkout_url = $this->base_url . "checkout/Merchant/" . $this->_merchantId;
     $this->checkoutForm_url = $this->base_url . "checkoutForm/Merchant/" . $this->_merchantId;
 }
Esempio n. 12
0
 function __construct()
 {
     // initialization constructor.  Called when class is created.
     parent::__construct();
     $this->paypal_url = $this->paymentmode == 'test' ? 'https://www.sandbox.paypal.com/cgi-bin/webscr' : 'https://www.paypal.com/cgi-bin/webscr';
     $this->last_error = '';
     $this->ipn_log_file = 'ipn_log.txt';
     $this->ipn_log_file = dirname(__FILE__) . "/ipnlog.txt";
     //pr($this->ipn_log_file);
     $this->ipn_log = true;
     $this->ipn_response = '';
     $this->add_field('rm', '2');
     // Return method = POST
     // $this->add_field('item_name',$this->confirmNum);
     $this->add_field('cmd', '_xclick');
     // $this->add_field('button_subtype','services');
     $this->add_field('no_shipping', '1');
     //$this->add_field('bn','PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted');
     $this->add_field('charset', "utf-8");
 }
Esempio n. 13
0
 function __construct()
 {
     global $paypal_api_user, $paypal_api_password, $paypal_api_signature, $paypal_pro_country, $godaddy_hosting;
     $VERSION = '57.0';
     parent::__construct();
     /*  below 3 lines info is only for testing
     		$this->API_USERNAME = '******'; // $API_USERNAME;
     		$this->API_PASSWORD = '******'; // $API_PASSWORD;
     		$this->API_SIGNATURE = 'A9LC3Qajo-H2V8mPq4eIktgPvG2RAUCxfRRLEPhAB8Q8wU1uWETp1Nib'; //$API_SIGNATURE;
     		*/
     $this->API_USERNAME = $paypal_api_user;
     // $API_USERNAME;
     $this->API_PASSWORD = $paypal_api_password;
     // $API_PASSWORD;
     $this->API_SIGNATURE = $paypal_api_signature;
     //$API_SIGNATURE;
     $this->API_ENDPOINT = $this->paymentmode == 'test' ? 'https://api-3t.sandbox.paypal.com/nvp' : 'https://api-3t.paypal.com/nvp';
     $this->USE_PROXY = false;
     if ($godaddy_hosting) {
         $this->USE_PROXY = true;
         $PROXY_HOST = "http://proxy.shr.secureserver.net";
         $PROXY_PORT = 3128;
     }
     if ($this->USE_PROXY == true) {
         $this->PROXY_HOST = $PROXY_HOST;
         $this->PROXY_PORT = $PROXY_PORT;
     } else {
         $this->PROXY_HOST = '127.0.0.1';
         $this->PROXY_PORT = '808';
     }
     if ($this->paymentmode == 'test') {
         $this->PAYPAL_URL = 'https://www.sandbox.paypal.com/webscr&cmd=_express-checkout&token=';
     } else {
         $this->PAYPAL_URL = 'https://www.paypal.com/webscr&cmd=_express-checkout&token=';
     }
     $this->VERSION = $VERSION;
 }
Esempio n. 14
0
 public function __construct()
 {
     parent::__construct();
     $regIp = isset($_SERVER['SERVER_ADDR']) ? $_SERVER['SERVER_ADDR'] : $_SERVER['HTTP_HOST'];
     $this->intro = '<b style="font-family:verdana;font-size:13px;padding:3px;color:#000"><br>ShopEx联合支付宝推出优惠套餐:无预付/年费,单笔费率1.5%,无流量限制。</b><div style="padding:10px 0 0 388px"><a  href="javascript:void(0)" onclick="document.ALIPAYFORM.submit();"><img src="../plugins/payment/images/alipaysq.png"></a></div><div>如果您已经和支付宝签约了其他套餐,同样可以点击上面申请按钮重新签约,即可享受新的套餐。<br>如果不需要更换套餐,请将签约合作者身份ID等信息在下面填写即可,<a href="http://www.shopex.cn/help/ShopEx48/help_shopex48-1235733634-11323.html" target="_blank">点击这里查看使用帮助</a><form name="ALIPAYFORM" method="GET" action="http://top.shopex.cn/recordpayagent.php" target="_blank"><input type="hidden" name="postmethod" value="GET"><input type="hidden" name="payagentname" value="支付宝"><input type="hidden" name="payagentkey" value="ALIPAY"><input type="hidden" name="market_type" value="from_agent_contract"><input type="hidden" name="customer_external_id" value="C433530444855584111X"><input type="hidden" name="pro_codes" value="6AECD60F4D75A7FB"><input type="hidden" name="regIp" value="' . $regIp . '"><input type="hidden" name="domain" value="' . SITE_URL . '"></form></div>';
 }
Esempio n. 15
0
 function __construct()
 {
     parent::__construct();
 }
Esempio n. 16
0
 public function __construct(array $params = [])
 {
     $this->type = "Boleto";
     parent::__construct($params);
 }
 /**
  * @copydoc Payment::Payment
  */
 function __construct($amount, $currencyCode, $userId = null, $assocId = null)
 {
     parent::__construct($amount, $currencyCode, $userId, $assocId);
 }
Esempio n. 18
0
 function __construct(array $arr_options = null)
 {
     parent::__construct($arr_options);
     $this->type = "integration";
 }
Esempio n. 19
0
 /**
  * @param array $values
  * @param array $valuesToBeVerified
  */
 public function __construct(array $values, array $valuesToBeVerified)
 {
     parent::__construct($values);
     $this->valuesToBeVerified = $valuesToBeVerified;
 }
Esempio n. 20
0
 function __construct(array $arr_options = null)
 {
     parent::__construct($arr_options);
     $this->type = "offline";
 }
 public function __construct($options = [])
 {
     parent::__construct($options);
     $this->type = "EletronicTransfer";
 }
 public function __construct(array $params = [])
 {
     $this->type = "EletronicTransfer";
     parent::__construct($params);
 }
 public function __construct($options = [])
 {
     parent::__construct($options);
     $this->type = "DebitCard";
 }
Esempio n. 24
0
 function __construct($email, $ref, Money $amount)
 {
     $this->reference = $ref;
     $this->email = $email;
     $description = 'Payment for goods bought by ' . $email;
     $paymentMethod = new PayPalFullPayment();
     parent::__construct($amount, $description, $paymentMethod);
 }