Enabled Billing Plans and Agreements APIs

- Added API Classes, Samples, and Tests
- Updated Functional Tests
- Updated Documentation with new SDK Name
- Updated Few Samples to use newer nicer result page
This commit is contained in:
japatel
2014-10-31 10:16:13 -05:00
parent f55fd3d984
commit 4d481ad104
192 changed files with 13310 additions and 1045 deletions

View File

@@ -26,7 +26,7 @@ class PaymentTest extends \PHPUnit_Framework_TestCase
$payment = new Payment();
$payment->setIntent("sale");
$payment->setRedirectUrls($redirectUrls);
$payment->setPayer(PayerTest::createPayer());
$payment->setPayer(PayerTest::getObject());
$payment->setTransactions(array(TransactionTest::createTransaction()));
return $payment;
@@ -35,7 +35,7 @@ class PaymentTest extends \PHPUnit_Framework_TestCase
public static function createNewPayment()
{
$funding = FundingInstrumentTest::createFundingInstrument();
$funding = FundingInstrumentTest::getObject();
$funding->credit_card_token = null;
$payer = new Payer();
@@ -72,24 +72,6 @@ class PaymentTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($p2, $this->payments['full']);
}
/**
* @group integration
*/
public function testOperations()
{
$p1 = $this->payments['new'];
$p1->create();
$this->assertNotNull($p1->getId());
$p2 = Payment::get($p1->getId());
$this->assertNotNull($p2);
$paymentHistory = Payment::all(array('count' => '10'));
$this->assertNotNull($paymentHistory);
}
/**
* @group integration
*