public function setup() { $this->captures['partial'] = self::createCapture(); $capture = self::createCapture(); $capture->setAmount(AmountTest::createAmount()); $capture->setLinks(array(LinkTest::createLink())); $this->captures['full'] = $capture; }
public function setup() { $card = self::createCreditCard(); $card->setBilling_address(AddressTest::createAddress()); $card->setLinks(array(LinkTest::createLink())); $this->cards['full'] = $card; $card = self::createCreditCard(); $this->cards['partial'] = $card; }
public static function createAuthorization() { $authorization = new Authorization(); $authorization->setCreate_time(self::$create_time); $authorization->setId(self::$id); $authorization->setState(self::$state); $authorization->setAmount(AmountTest::createAmount()); $authorization->setLinks(array(LinkTest::createLink())); return $authorization; }
public static function createSale() { $sale = new Sale(); $sale->setAmount(AmountTest::createAmount()); $sale->setCreate_time(self::$createTime); $sale->setId(self::$id); $sale->setLinks(array(LinkTest::createLink())); $sale->setParent_payment(self::$parentPayment); $sale->setState(self::$state); return $sale; }
public static function createRefund() { $refund = new Refund(); $refund->setAmount(AmountTest::createAmount()); $refund->setCapture_id(self::$captureId); $refund->setCreate_time(self::$createTime); $refund->setDescription(self::$description); $refund->setId(self::$id); $refund->setLinks(array(LinkTest::createLink())); $refund->setParent_payment(self::$parentPayment); return $refund; }