当前位置: 首页>>代码示例>>PHP>>正文


PHP Payment::__construct方法代码示例

本文整理汇总了PHP中Payment::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Payment::__construct方法的具体用法?PHP Payment::__construct怎么用?PHP Payment::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Payment的用法示例。


在下文中一共展示了Payment::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 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);
     }
 }
开发者ID:reeleis,项目名称:ohiocitycycles,代码行数:32,代码来源:idealRabo.php

示例2: __construct

 /**
  * @inherit
  */
 public function __construct(array $properties = array())
 {
     parent::__construct($properties);
     if (empty($this->contextObj)) {
         $this->contextObj = new NullPaymentContext();
     }
 }
开发者ID:nishantkumar155,项目名称:drupal8.crackle,代码行数:10,代码来源:Payment.php

示例3:

 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;
 }
开发者ID:reeleis,项目名称:ohiocitycycles,代码行数:8,代码来源:Sage.php

示例4: __construct

 public function __construct(array $params = [])
 {
     $this->type = "CreditCard";
     $this->authenticate = Braspag::$defaultAuthenticate;
     $this->capture = Braspag::$defaultCapture;
     $this->interest = Braspag::$defaultInterest;
     parent::__construct($params);
 }
开发者ID:bfgasparin,项目名称:braspag-php,代码行数:8,代码来源:CreditCardPayment.php

示例5: __construct

 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');
 }
开发者ID:reeleis,项目名称:ohiocitycycles,代码行数:9,代码来源:ideal.php

示例6: NetDeposit

 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;
 }
开发者ID:reeleis,项目名称:ohiocitycycles,代码行数:9,代码来源:NetDeposit.php

示例7: psigate

 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
 }
开发者ID:reeleis,项目名称:ohiocitycycles,代码行数:14,代码来源:psigate.php

示例8: Eway

 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;
 }
开发者ID:reeleis,项目名称:ohiocitycycles,代码行数:15,代码来源:Eway.php

示例9:

 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;
 }
开发者ID:reeleis,项目名称:ohiocitycycles,代码行数:16,代码来源:saferpay.php

示例10:

 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";
 }
开发者ID:reeleis,项目名称:ohiocitycycles,代码行数:17,代码来源:usaepay_credit_card.php

示例11: GoogleCheckout

 /**
  * 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;
 }
开发者ID:reeleis,项目名称:ohiocitycycles,代码行数:28,代码来源:GoogleCheckout.php

示例12: dirname

 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");
 }
开发者ID:reeleis,项目名称:ohiocitycycles,代码行数:20,代码来源:paypal.php

示例13:

 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 = 'chahal_1217571131_biz_api1.hotmail.com'; // $API_USERNAME;
     		$this->API_PASSWORD = 'J48TN67TC5BDUVDV'; // $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;
 }
开发者ID:reeleis,项目名称:ohiocitycycles,代码行数:37,代码来源:paypal_pro.php

示例14: __construct

 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>';
 }
开发者ID:hubs,项目名称:yuncms,代码行数:6,代码来源:alipay.php

示例15:

 function __construct()
 {
     parent::__construct();
 }
开发者ID:reeleis,项目名称:ohiocitycycles,代码行数:4,代码来源:offline_payment.php


注:本文中的Payment::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。