Esempio n. 1
0
 public function setup()
 {
     $this->captures['partial'] = self::createCapture();
     $capture = self::createCapture();
     $capture->setAmount(AmountTest::createAmount());
     $capture->setLinks(array(LinksTest::createLinks()));
     $this->captures['full'] = $capture;
 }
 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;
 }
Esempio n. 3
0
 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;
 }
Esempio n. 4
0
 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;
 }
 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;
 }