Open Journal Systems
3.3.0
vendor/omnipay/paypal/src/Message/ExpressTransactionSearchResponse.php
1
<?php
2
3
namespace
Omnipay\PayPal\Message
;
4
5
use
Omnipay\Common\Message\RequestInterface
;
6
10
class
ExpressTransactionSearchResponse
extends
Response
11
{
12
public
function
__construct
(
RequestInterface
$request
,
$data
)
13
{
14
parent::__construct(
$request
,
$data
);
15
16
$payments = array();
17
18
foreach
($this->data as $key => $value) {
19
if
($this->
isSuccessful
()
20
&& preg_match(
'/(L_)?(?<key>[A-Za-z]+)(?<n>[0-9]+)/'
, $key, $matches)
21
) {
22
$payments[$matches[
'n'
]][$matches[
'key'
]] = $value;
23
unset($this->data[$key]);
24
}
25
}
26
27
$this->data[
'payments'
] = $payments;
28
}
29
30
public
function
getPayments
()
31
{
32
return
$this->data[
'payments'
];
33
}
34
}
Omnipay\Common\Message\RequestInterface
Definition:
lib/vendor/omnipay/common/src/Omnipay/Common/Message/RequestInterface.php:16
Omnipay\PayPal\Message\ExpressTransactionSearchResponse\__construct
__construct(RequestInterface $request, $data)
Definition:
vendor/omnipay/paypal/src/Message/ExpressTransactionSearchResponse.php:12
Omnipay\PayPal\Message\ExpressTransactionSearchResponse\getPayments
getPayments()
Definition:
vendor/omnipay/paypal/src/Message/ExpressTransactionSearchResponse.php:30
Omnipay\Common\Message\AbstractResponse\$data
$data
Definition:
lib/vendor/omnipay/common/src/Omnipay/Common/Message/AbstractResponse.php:52
Omnipay\PayPal\Message\Response\isSuccessful
isSuccessful()
Definition:
lib/vendor/omnipay/paypal/src/Message/Response.php:25
Omnipay\Common\Message\AbstractResponse\$request
$request
Definition:
lib/vendor/omnipay/common/src/Omnipay/Common/Message/AbstractResponse.php:42
Omnipay\PayPal\Message
Definition:
lib/vendor/omnipay/paypal/src/Message/AbstractRequest.php:6
plugins
paymethod
paypal
vendor
omnipay
paypal
src
Message
ExpressTransactionSearchResponse.php
Generated on Fri Aug 28 2020 14:51:46 for Open Journal Systems by
1.8.17