forked from LiveCarta/PayPal-PHP-SDK
Update Payment Experience API to v1.3
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user