public static function createTransaction()
 {
     $transaction = new Transaction();
     $transaction->setAmount(AmountTest::createAmount());
     $transaction->setDescription(self::$description);
     $transaction->setItemList(ItemListTest::createItemList());
     $transaction->setPayee(PayeeTest::createPayee());
     $transaction->setRelatedResources(array(RelatedResourcesTest::createRelatedResources()));
     return $transaction;
 }
Beispiel #2
0
 public static function createTransaction()
 {
     $transaction = new Transaction();
     $transaction->setAmount(AmountTest::createAmount());
     $transaction->setDescription(self::$description);
     $transaction->setInvoiceNumber(self::$invoiceNumber);
     $transaction->setCustom(self::$custom);
     $transaction->setSoftDescriptor(self::$softDescriptor);
     $transaction->setItemList(ItemListTest::createItemList());
     $transaction->setPayee(PayeeTest::createPayee());
     $transaction->setRelatedResources(array(RelatedResourcesTest::createRelatedResources()));
     return $transaction;
 }