本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
示例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);
示例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);
示例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);
示例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);
示例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);
示例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);
示例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);
示例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);
}
示例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);