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