Update Payment Experience API to v1.3

This commit is contained in:
mrak and stevecoffey
2016-10-10 10:45:55 -07:00
parent d51a8d39ac
commit 3f909f7f5e
8 changed files with 186 additions and 63 deletions

View File

@@ -2,6 +2,7 @@
namespace PayPal\Test\Api;
use PayPal\Common\PayPalModel;
use PayPal\Api\FlowConfig;
/**
@@ -17,7 +18,7 @@ class FlowConfigTest extends \PHPUnit_Framework_TestCase
*/
public static function getJson()
{
return '{"landing_page_type":"TestSample","bank_txn_pending_url":"http://www.google.com"}';
return '{"landing_page_type":"TestSample","bank_txn_pending_url":"http://www.google.com","user_action":"TestSample","return_uri_http_method":"TestSample"}';
}
/**
@@ -40,6 +41,8 @@ class FlowConfigTest extends \PHPUnit_Framework_TestCase
$this->assertNotNull($obj);
$this->assertNotNull($obj->getLandingPageType());
$this->assertNotNull($obj->getBankTxnPendingUrl());
$this->assertNotNull($obj->getUserAction());
$this->assertNotNull($obj->getReturnUriHttpMethod());
$this->assertEquals(self::getJson(), $obj->toJson());
return $obj;
}
@@ -52,6 +55,8 @@ class FlowConfigTest extends \PHPUnit_Framework_TestCase
{
$this->assertEquals($obj->getLandingPageType(), "TestSample");
$this->assertEquals($obj->getBankTxnPendingUrl(), "http://www.google.com");
$this->assertEquals($obj->getUserAction(), "TestSample");
$this->assertEquals($obj->getReturnUriHttpMethod(), "TestSample");
}
/**
@@ -63,4 +68,5 @@ class FlowConfigTest extends \PHPUnit_Framework_TestCase
$obj = new FlowConfig();
$obj->setBankTxnPendingUrl(null);
}
}