當前位置: 首頁>>代碼示例>>PHP>>正文


PHP LinksTest::createLinks方法代碼示例

本文整理匯總了PHP中PayPal\Test\Api\LinksTest::createLinks方法的典型用法代碼示例。如果您正苦於以下問題:PHP LinksTest::createLinks方法的具體用法?PHP LinksTest::createLinks怎麽用?PHP LinksTest::createLinks使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在PayPal\Test\Api\LinksTest的用法示例。


在下文中一共展示了LinksTest::createLinks方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: setup

 public function setup()
 {
     $this->captures['partial'] = self::createCapture();
     $capture = self::createCapture();
     $capture->setAmount(AmountTest::createAmount());
     $capture->setLinks(array(LinksTest::createLinks()));
     $this->captures['full'] = $capture;
 }
開發者ID:Lucerin,項目名稱:Yii-projects,代碼行數:8,代碼來源:CaptureTest.php

示例2: setup

 public function setup()
 {
     $card = self::createCreditCard();
     $card->setBillingAddress(AddressTest::createAddress());
     $card->setLinks(array(LinksTest::createLinks()));
     $this->cards['full'] = $card;
     $card = self::createCreditCard();
     $this->cards['partial'] = $card;
 }
開發者ID:berthojoris,項目名稱:rest-api-sdk-php,代碼行數:9,代碼來源:CreditCardTest.php

示例3: createAuthorization

 public static function createAuthorization()
 {
     $authorization = new Authorization();
     $authorization->setCreateTime(self::$create_time);
     $authorization->setId(self::$id);
     $authorization->setState(self::$state);
     $authorization->setAmount(AmountTest::createAmount());
     $authorization->setLinks(array(LinksTest::createLinks()));
     return $authorization;
 }
開發者ID:ewwgit,項目名稱:eptri,代碼行數:10,代碼來源:AuthorizationTest.php

示例4: createSale

 public static function createSale()
 {
     $sale = new Sale();
     $sale->setAmount(AmountTest::createAmount());
     $sale->setCreateTime(self::$createTime);
     $sale->setId(self::$id);
     $sale->setLinks(array(LinksTest::createLinks()));
     $sale->setParentPayment(self::$parentPayment);
     $sale->setState(self::$state);
     return $sale;
 }
開發者ID:Lucerin,項目名稱:Yii-projects,代碼行數:11,代碼來源:SaleTest.php

示例5: createRefund

 public static function createRefund()
 {
     $refund = new Refund();
     $refund->setCreateTime(self::$createTime);
     $refund->setAmount(AmountTest::createAmount());
     $refund->setCaptureId(self::$captureId);
     $refund->setId(self::$id);
     $refund->setLinks(array(LinksTest::createLinks()));
     $refund->setParentPayment(self::$parentPayment);
     return $refund;
 }
開發者ID:adiktus9116,項目名稱:rest-api-sdk-php,代碼行數:11,代碼來源:RefundTest.php


注:本文中的PayPal\Test\Api\LinksTest::createLinks方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。