1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6 use PayPal\Validation\UrlValidator;
7
8 /**
9 * Class FlowConfig
10 *
11 * Parameters for flow configuration.
12 *
13 * @package PayPal\Api
14 *
15 * @property string landing_page_type
16 * @property string bank_txn_pending_url
17 * @property string user_action
18 * @property string return_uri_http_method
19 */
20 class FlowConfig extends PayPalModel
21 {
22 /**
23 * 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.
24 *
25 * @param string $landing_page_type
26 *
27 * @return $this
28 */
29 public function setLandingPageType($landing_page_type)
30 {
31 $this->landing_page_type = $landing_page_type;
32 return $this;
33 }
34
35 /**
36 * 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.
37 *
38 * @return string
39 */
40 public function getLandingPageType()
41 {
42 return $this->landing_page_type;
43 }
44
45 /**
46 * The merchant site URL to display after a bank transfer payment. Valid for only the Giropay or bank transfer payment method in Germany.
47 *
48 * @param string $bank_txn_pending_url
49 * @throws \InvalidArgumentException
50 * @return $this
51 */
52 public function setBankTxnPendingUrl($bank_txn_pending_url)
53 {
54 UrlValidator::validate($bank_txn_pending_url, "BankTxnPendingUrl");
55 $this->bank_txn_pending_url = $bank_txn_pending_url;
56 return $this;
57 }
58
59 /**
60 * The merchant site URL to display after a bank transfer payment. Valid for only the Giropay or bank transfer payment method in Germany.
61 *
62 * @return string
63 */
64 public function getBankTxnPendingUrl()
65 {
66 return $this->bank_txn_pending_url;
67 }
68
69 /**
70 * Defines whether buyers can complete purchases on the PayPal or merchant website.
71 *
72 * @param string $user_action
73 *
74 * @return $this
75 */
76 public function setUserAction($user_action)
77 {
78 $this->user_action = $user_action;
79 return $this;
80 }
81
82 /**
83 * Defines whether buyers can complete purchases on the PayPal or merchant website.
84 *
85 * @return string
86 */
87 public function getUserAction()
88 {
89 return $this->user_action;
90 }
91
92 /**
93 * Defines the HTTP method to use to redirect the user to a return URL. A valid value is `GET` or `POST`.
94 *
95 * @param string $return_uri_http_method
96 *
97 * @return $this
98 */
99 public function setReturnUriHttpMethod($return_uri_http_method)
100 {
101 $this->return_uri_http_method = $return_uri_http_method;
102 return $this;
103 }
104
105 /**
106 * Defines the HTTP method to use to redirect the user to a return URL. A valid value is `GET` or `POST`.
107 *
108 * @return string
109 */
110 public function getReturnUriHttpMethod()
111 {
112 return $this->return_uri_http_method;
113 }
114
115 }
116