当前位置: 首页>>代码示例>>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;未经允许,请勿转载。