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

@@ -14,12 +14,13 @@ use PayPal\Validation\UrlValidator;
*
* @property string landing_page_type
* @property string bank_txn_pending_url
* @property string user_action
* @property string return_uri_http_method
*/
class FlowConfig extends PayPalModel
{
/**
* Type of PayPal page to be displayed when a user lands on the PayPal site for checkout. Allowed values: `Billing` or `Login`. When set to `Billing`, the Non-PayPal account landing page is used. When set to `Login`, the PayPal account login landing page is used.
*
* The type of landing page to display on the PayPal site for user checkout. Set to `Billing` to use the non-PayPal account landing page. Set to `Login` to use the PayPal account login landing page.
*
* @param string $landing_page_type
*
@@ -32,7 +33,7 @@ class FlowConfig extends PayPalModel
}
/**
* Type of PayPal page to be displayed when a user lands on the PayPal site for checkout. Allowed values: `Billing` or `Login`. When set to `Billing`, the Non-PayPal account landing page is used. When set to `Login`, the PayPal account login landing page is used.
* The type of landing page to display on the PayPal site for user checkout. Set to `Billing` to use the non-PayPal account landing page. Set to `Login` to use the PayPal account login landing page.
*
* @return string
*/
@@ -42,8 +43,7 @@ class FlowConfig extends PayPalModel
}
/**
* The URL on the merchant site for transferring to after a bank transfer payment.
*
* The merchant site URL to display after a bank transfer payment. Valid for only the Giropay or bank transfer payment method in Germany.
*
* @param string $bank_txn_pending_url
* @throws \InvalidArgumentException
@@ -57,7 +57,7 @@ class FlowConfig extends PayPalModel
}
/**
* The URL on the merchant site for transferring to after a bank transfer payment.
* The merchant site URL to display after a bank transfer payment. Valid for only the Giropay or bank transfer payment method in Germany.
*
* @return string
*/
@@ -66,4 +66,50 @@ class FlowConfig extends PayPalModel
return $this->bank_txn_pending_url;
}
/**
* Defines whether buyers can complete purchases on the PayPal or merchant website.
*
* @param string $user_action
*
* @return $this
*/
public function setUserAction($user_action)
{
$this->user_action = $user_action;
return $this;
}
/**
* Defines whether buyers can complete purchases on the PayPal or merchant website.
*
* @return string
*/
public function getUserAction()
{
return $this->user_action;
}
/**
* Defines the HTTP method to use to redirect the user to a return URL. A valid value is `GET` or `POST`.
*
* @param string $return_uri_http_method
*
* @return $this
*/
public function setReturnUriHttpMethod($return_uri_http_method)
{
$this->return_uri_http_method = $return_uri_http_method;
return $this;
}
/**
* Defines the HTTP method to use to redirect the user to a return URL. A valid value is `GET` or `POST`.
*
* @return string
*/
public function getReturnUriHttpMethod()
{
return $this->return_uri_http_method;
}
}