Open Monograph Press  3.3.0
vendor/omnipay/paypal/src/ExpressGateway.php
1 <?php
2 
3 namespace Omnipay\PayPal;
4 
8 class ExpressGateway extends ProGateway
9 {
10  public function getName()
11  {
12  return 'PayPal Express';
13  }
14 
15  public function getDefaultParameters()
16  {
17  $settings = parent::getDefaultParameters();
18  $settings['solutionType'] = array('Sole', 'Mark');
19  $settings['landingPage'] = array('Billing', 'Login');
20  $settings['brandName'] = '';
21  $settings['headerImageUrl'] = '';
22  $settings['logoImageUrl'] = '';
23  $settings['borderColor'] = '';
24 
25  return $settings;
26  }
27 
28  public function getSolutionType()
29  {
30  return $this->getParameter('solutionType');
31  }
32 
33  public function setSolutionType($value)
34  {
35  return $this->setParameter('solutionType', $value);
36  }
37 
38  public function getLandingPage()
39  {
40  return $this->getParameter('landingPage');
41  }
42 
43  public function setLandingPage($value)
44  {
45  return $this->setParameter('landingPage', $value);
46  }
47 
48  public function getBrandName()
49  {
50  return $this->getParameter('brandName');
51  }
52 
53  public function setBrandName($value)
54  {
55  return $this->setParameter('brandName', $value);
56  }
57 
58  public function getHeaderImageUrl()
59  {
60  return $this->getParameter('headerImageUrl');
61  }
62 
63  public function getLogoImageUrl()
64  {
65  return $this->getParameter('logoImageUrl');
66  }
67 
68  public function getBorderColor()
69  {
70  return $this->getParameter('borderColor');
71  }
72 
83  public function setHeaderImageUrl($value)
84  {
85  return $this->setParameter('headerImageUrl', $value);
86  }
87 
95  public function setLogoImageUrl($value)
96  {
97  return $this->setParameter('logoImageUrl', $value);
98  }
99 
106  public function setBorderColor($value)
107  {
108  return $this->setParameter('borderColor', $value);
109  }
110 
111  public function setSellerPaypalAccountId($value)
112  {
113  return $this->setParameter('sellerPaypalAccountId', $value);
114  }
115 
116  public function getSellerPaypalAccountId()
117  {
118  return $this->getParameter('sellerPaypalAccountId');
119  }
120 
121  public function authorize(array $parameters = array())
122  {
123  return $this->createRequest('\Omnipay\PayPal\Message\ExpressAuthorizeRequest', $parameters);
124  }
125 
126  public function completeAuthorize(array $parameters = array())
127  {
128  return $this->createRequest('\Omnipay\PayPal\Message\ExpressCompleteAuthorizeRequest', $parameters);
129  }
130 
131  public function purchase(array $parameters = array())
132  {
133  return $this->authorize($parameters);
134  }
135 
136  public function completePurchase(array $parameters = array())
137  {
138  return $this->createRequest('\Omnipay\PayPal\Message\ExpressCompletePurchaseRequest', $parameters);
139  }
140 
141  public function void(array $parameters = array())
142  {
143  return $this->createRequest('\Omnipay\PayPal\Message\ExpressVoidRequest', $parameters);
144  }
145 
146  public function fetchCheckout(array $parameters = array())
147  {
148  return $this->createRequest('\Omnipay\PayPal\Message\ExpressFetchCheckoutRequest', $parameters);
149  }
150 
154  public function transactionSearch(array $parameters = array())
155  {
156  return $this->createRequest('\Omnipay\PayPal\Message\ExpressTransactionSearchRequest', $parameters);
157  }
158 
159  public function order(array $parameters = array())
160  {
161  return $this->createRequest('\Omnipay\PayPal\Message\ExpressOrderRequest', $parameters);
162  }
163 
164  public function completeOrder(array $parameters = array())
165  {
166  return $this->createRequest('\Omnipay\PayPal\Message\ExpressCompleteOrderRequest', $parameters);
167  }
168 }
Omnipay\PayPal\ExpressGateway\authorize
authorize(array $parameters=array())
Definition: vendor/omnipay/paypal/src/ExpressGateway.php:121
Omnipay\PayPal\ExpressGateway\completePurchase
completePurchase(array $parameters=array())
Definition: vendor/omnipay/paypal/src/ExpressGateway.php:136
Omnipay\PayPal\ExpressGateway\getSolutionType
getSolutionType()
Definition: vendor/omnipay/paypal/src/ExpressGateway.php:28
Omnipay\PayPal\ExpressGateway\getLogoImageUrl
getLogoImageUrl()
Definition: vendor/omnipay/paypal/src/ExpressGateway.php:63
Omnipay\PayPal\ExpressGateway\getBorderColor
getBorderColor()
Definition: vendor/omnipay/paypal/src/ExpressGateway.php:68
Omnipay\PayPal\ExpressGateway\setBorderColor
setBorderColor($value)
Definition: vendor/omnipay/paypal/src/ExpressGateway.php:106
Omnipay\PayPal\ExpressGateway\transactionSearch
transactionSearch(array $parameters=array())
Definition: vendor/omnipay/paypal/src/ExpressGateway.php:154
Omnipay\PayPal\ExpressGateway\completeAuthorize
completeAuthorize(array $parameters=array())
Definition: vendor/omnipay/paypal/src/ExpressGateway.php:126
Omnipay\PayPal
Definition: lib/vendor/omnipay/paypal/src/ExpressGateway.php:3
Omnipay\PayPal\ExpressGateway\fetchCheckout
fetchCheckout(array $parameters=array())
Definition: vendor/omnipay/paypal/src/ExpressGateway.php:146
Omnipay\PayPal\ExpressGateway\setHeaderImageUrl
setHeaderImageUrl($value)
Definition: vendor/omnipay/paypal/src/ExpressGateway.php:83
Omnipay\PayPal\ExpressGateway\order
order(array $parameters=array())
Definition: vendor/omnipay/paypal/src/ExpressGateway.php:159
Omnipay\Common\AbstractGateway\createRequest
createRequest($class, array $parameters)
Definition: lib/vendor/omnipay/common/src/Omnipay/Common/AbstractGateway.php:329
Omnipay\PayPal\ExpressGateway\void
void(array $parameters=array())
Definition: vendor/omnipay/paypal/src/ExpressGateway.php:141
Omnipay\Common\AbstractGateway\getParameter
getParameter($key)
Definition: lib/vendor/omnipay/common/src/Omnipay/Common/AbstractGateway.php:138
Omnipay\PayPal\ExpressGateway\setSolutionType
setSolutionType($value)
Definition: vendor/omnipay/paypal/src/ExpressGateway.php:33
Omnipay\PayPal\ExpressGateway\getLandingPage
getLandingPage()
Definition: vendor/omnipay/paypal/src/ExpressGateway.php:38
Omnipay\PayPal\ExpressGateway\setLogoImageUrl
setLogoImageUrl($value)
Definition: vendor/omnipay/paypal/src/ExpressGateway.php:95
Omnipay\PayPal\ExpressGateway\completeOrder
completeOrder(array $parameters=array())
Definition: vendor/omnipay/paypal/src/ExpressGateway.php:164
Omnipay\PayPal\ExpressGateway\getDefaultParameters
getDefaultParameters()
Definition: vendor/omnipay/paypal/src/ExpressGateway.php:15
Omnipay\PayPal\ExpressGateway\getBrandName
getBrandName()
Definition: vendor/omnipay/paypal/src/ExpressGateway.php:48
Omnipay\PayPal\ExpressGateway\purchase
purchase(array $parameters=array())
Definition: vendor/omnipay/paypal/src/ExpressGateway.php:131
Omnipay\PayPal\ExpressGateway\getSellerPaypalAccountId
getSellerPaypalAccountId()
Definition: vendor/omnipay/paypal/src/ExpressGateway.php:116
Omnipay\PayPal\ExpressGateway\getName
getName()
Definition: vendor/omnipay/paypal/src/ExpressGateway.php:10
Omnipay\Common\AbstractGateway\setParameter
setParameter($key, $value)
Definition: lib/vendor/omnipay/common/src/Omnipay/Common/AbstractGateway.php:148
Omnipay\PayPal\ExpressGateway\setLandingPage
setLandingPage($value)
Definition: vendor/omnipay/paypal/src/ExpressGateway.php:43
Omnipay\PayPal\ExpressGateway\getHeaderImageUrl
getHeaderImageUrl()
Definition: vendor/omnipay/paypal/src/ExpressGateway.php:58
Omnipay\Common\AbstractGateway\$parameters
$parameters
Definition: lib/vendor/omnipay/common/src/Omnipay/Common/AbstractGateway.php:53
Omnipay\PayPal\ExpressGateway\setBrandName
setBrandName($value)
Definition: vendor/omnipay/paypal/src/ExpressGateway.php:53
Omnipay\PayPal\ExpressGateway\setSellerPaypalAccountId
setSellerPaypalAccountId($value)
Definition: vendor/omnipay/paypal/src/ExpressGateway.php:111