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


PHP Config::options方法代码示例

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


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

示例1: shouldBuildOptionsWithoutUrl

 /**
  * @test
  */
 public function shouldBuildOptionsWithoutUrl()
 {
     $options = ['client_id' => 'client_id', 'client_secret' => 'client_secret', 'sandbox' => true];
     $opt = Config::options($options);
     $this->assertArrayHasKey('sandbox', $opt);
     $this->assertArrayHasKey('debug', $opt);
     $this->assertArrayHasKey('clientId', $opt);
     $this->assertArrayHasKey('clientSecret', $opt);
     $this->assertEquals($opt['sandbox'], true);
 }
开发者ID:rodrigofnp,项目名称:gn-api-sdk-php,代码行数:13,代码来源:ConfigTest.php

示例2: retrieve_bounced_bank_transfers

function retrieve_bounced_bank_transfers()
{
    # create request class
    $request = new \Iyzipay\Request\RetrieveTransactionsRequest();
    $request->setLocale(\Iyzipay\Model\Locale::TR);
    $request->setConversationId("123456789");
    $request->setDate("2016-01-22 19:13:00");
    # make request
    $bouncedBankTransferList = \Iyzipay\Model\BouncedBankTransferList::retrieve($request, Config::options());
    # print result
    print_r($bouncedBankTransferList);
}
开发者ID:iyzico,项目名称:iyzipay-php,代码行数:12,代码来源:retrieve_payout_transactions.php

示例3: create_card

function create_card()
{
    # create request class
    $request = new \Iyzipay\Request\CreateCardRequest();
    $request->setLocale(\Iyzipay\Model\Locale::TR);
    $request->setConversationId("123456789");
    $request->setCardUserKey("card user key");
    $cardInformation = new \Iyzipay\Model\CardInformation();
    $cardInformation->setCardAlias("card alias");
    $cardInformation->setCardHolderName("John Doe");
    $cardInformation->setCardNumber("5528790000000008");
    $cardInformation->setExpireMonth("12");
    $cardInformation->setExpireYear("2030");
    $request->setCard($cardInformation);
    # make request
    $card = \Iyzipay\Model\Card::create($request, Config::options());
    # print result
    print_r($card);
}
开发者ID:iyzico,项目名称:iyzipay-php,代码行数:19,代码来源:create_card.php

示例4: update_limited_company_sub_merchant

function update_limited_company_sub_merchant()
{
    # create request class
    $request = new \Iyzipay\Request\UpdateSubMerchantRequest();
    $request->setLocale(\Iyzipay\Model\Locale::TR);
    $request->setConversationId("123456789");
    $request->setSubMerchantKey("sub merchant key");
    $request->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1");
    $request->setTaxOffice("Tax office");
    $request->setTaxNumber("9261877");
    $request->setLegalCompanyTitle("ABC inc");
    $request->setEmail("email@submerchantemail.com");
    $request->setGsmNumber("+905350000000");
    $request->setName("Jane's market");
    $request->setIban("TR180006200119000006672315");
    $request->setCurrency(\Iyzipay\Model\Currency::TL);
    # make request
    $subMerchant = \Iyzipay\Model\SubMerchant::update($request, Config::options());
    # print result
    print_r($subMerchant);
}
开发者ID:iyzico,项目名称:iyzipay-php,代码行数:21,代码来源:update_sub_merchant.php

示例5: create_limited_company_sub_merchant

function create_limited_company_sub_merchant()
{
    # create request class
    $request = new \Iyzipay\Request\CreateSubMerchantRequest();
    $request->setLocale(\Iyzipay\Model\Locale::TR);
    $request->setConversationId("123456789");
    $request->setSubMerchantExternalId("AS49224");
    $request->setSubMerchantType(\Iyzipay\Model\SubMerchantType::LIMITED_OR_JOINT_STOCK_COMPANY);
    $request->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1");
    $request->setTaxOffice("Tax office");
    $request->setTaxNumber("9261877");
    $request->setLegalCompanyTitle("XYZ inc");
    $request->setEmail("email@submerchantemail.com");
    $request->setGsmNumber("+905350000000");
    $request->setName("John's market");
    $request->setIban("TR180006200119000006672315");
    $request->setCurrency(\Iyzipay\Model\Currency::TL);
    # make request
    $subMerchant = \Iyzipay\Model\SubMerchant::create($request, Config::options());
    # print result
    print_r($subMerchant);
}
开发者ID:iyzico,项目名称:iyzipay-php,代码行数:22,代码来源:create_sub_merchant.php

示例6:

<?php

require_once 'config.php';
# create request class
$request = new \Iyzipay\Request\CreateThreedsPaymentRequest();
$request->setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setPaymentId("1");
$request->setConversationData("conversation data");
# make request
$threedsPayment = \Iyzipay\Model\ThreedsPayment::create($request, Config::options());
# print result
print_r($threedsPayment);
开发者ID:iyzico,项目名称:iyzipay-php,代码行数:13,代码来源:create_threeds_payment.php

示例7:

<?php

require_once 'config.php';
# create request class
$request = new \Iyzipay\Request\CreateApprovalRequest();
$request->setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setPaymentTransactionId("1");
# make request
$disapproval = \Iyzipay\Model\Disapproval::create($request, Config::options());
# print result
print_r($disapproval);
开发者ID:iyzico,项目名称:iyzipay-php,代码行数:12,代码来源:disapprove.php

示例8: array

$request->setBillingAddress($billingAddress);
$basketItems = array();
$firstBasketItem = new \Iyzipay\Model\BasketItem();
$firstBasketItem->setId("BI101");
$firstBasketItem->setName("Binocular");
$firstBasketItem->setCategory1("Collectibles");
$firstBasketItem->setCategory2("Accessories");
$firstBasketItem->setItemType(\Iyzipay\Model\BasketItemType::PHYSICAL);
$firstBasketItem->setPrice("0.3");
$basketItems[0] = $firstBasketItem;
$secondBasketItem = new \Iyzipay\Model\BasketItem();
$secondBasketItem->setId("BI102");
$secondBasketItem->setName("Game code");
$secondBasketItem->setCategory1("Game");
$secondBasketItem->setCategory2("Online Game Items");
$secondBasketItem->setItemType(\Iyzipay\Model\BasketItemType::VIRTUAL);
$secondBasketItem->setPrice("0.5");
$basketItems[1] = $secondBasketItem;
$thirdBasketItem = new \Iyzipay\Model\BasketItem();
$thirdBasketItem->setId("BI103");
$thirdBasketItem->setName("Usb");
$thirdBasketItem->setCategory1("Electronics");
$thirdBasketItem->setCategory2("Usb / Cable");
$thirdBasketItem->setItemType(\Iyzipay\Model\BasketItemType::PHYSICAL);
$thirdBasketItem->setPrice("0.2");
$basketItems[2] = $thirdBasketItem;
$request->setBasketItems($basketItems);
# make request
$threedsInitialize = \Iyzipay\Model\ThreedsInitialize::create($request, Config::options());
# print result
print_r($threedsInitialize);
开发者ID:iyzico,项目名称:iyzipay-php,代码行数:31,代码来源:initialize_threeds.php

示例9:

<?php

require_once 'config.php';
# create request class
$request = new \Iyzipay\Request\CreateRefundRequest();
$request->setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setPaymentTransactionId("1");
$request->setPrice("0.5");
$request->setCurrency(\Iyzipay\Model\Currency::TL);
$request->setIp("85.34.78.112");
# make request
$refund = \Iyzipay\Model\Refund::create($request, Config::options());
# print result
print_r($refund);
开发者ID:iyzico,项目名称:iyzipay-php,代码行数:15,代码来源:refund.php

示例10:

<?php

require_once 'config.php';
# create request class
$request = new \Iyzipay\Request\RetrieveCardListRequest();
$request->setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setCardUserKey("card user key");
# make request
$cardList = \Iyzipay\Model\CardList::retrieve($request, Config::options());
# print result
print_r($cardList);
开发者ID:iyzico,项目名称:iyzipay-php,代码行数:12,代码来源:retrieve_cards.php

示例11:

<?php

require_once 'config.php';
# create request class
$request = new \Iyzipay\Request\RetrieveInstallmentInfoRequest();
$request->setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setBinNumber("554960");
$request->setPrice("100");
# make request
$installmentInfo = \Iyzipay\Model\InstallmentInfo::retrieve($request, Config::options());
# print result
print_r($installmentInfo);
开发者ID:iyzico,项目名称:iyzipay-php,代码行数:13,代码来源:retrieve_installments.php

示例12:

<?php

require_once 'config.php';
# create request class
$request = new \Iyzipay\Request\DeleteCardRequest();
$request->setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setCardToken("card token");
$request->setCardUserKey("card user key");
# make request
$card = \Iyzipay\Model\Card::delete($request, Config::options());
# print result
print_r($card);
开发者ID:iyzico,项目名称:iyzipay-php,代码行数:13,代码来源:delete_card.php

示例13:

<?php

require_once 'config.php';
# create request class
$request = new \Iyzipay\Request\CreatePeccoPaymentRequest();
$request->setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setToken("token");
# make request
$peccoPayment = \Iyzipay\Model\PeccoPayment::create($request, Config::options());
# print result
print_r($peccoPayment);
开发者ID:iyzico,项目名称:iyzipay-php,代码行数:12,代码来源:create_pecco_payment.php

示例14: initialize

 public static function initialize($opts = array())
 {
     self::$options['base_paths'] = array(Core::tao_config_dir(), '../app/config/', '../config/');
     self::$options = Core_Arrays::deep_merge_update(self::$options, $opts);
 }
开发者ID:techart,项目名称:tao,代码行数:5,代码来源:Config.php

示例15:

<?php

require_once 'config.php';
# create request class
$request = new \Iyzipay\Request\RetrievePaymentRequest();
$request->setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setPaymentId("1");
$request->setPaymentConversationId("123456789");
# make request
$payment = \Iyzipay\Model\Payment::retrieve($request, Config::options());
# print result
print_r($payment);
开发者ID:iyzico,项目名称:iyzipay-php,代码行数:13,代码来源:retrieve_payment_result.php


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