Open Journal Systems
3.3.0
lib/vendor/omnipay/paypal/src/Message/ExpressCompletePurchaseResponse.php
1
<?php
2
3
namespace
Omnipay\PayPal\Message
;
4
8
class
ExpressCompletePurchaseResponse
extends
ExpressAuthorizeResponse
9
{
10
/*
11
* Is this complete purchase response successful? Will not be successful if it's a redirect response.
12
*
13
* @return bool
14
*/
15
public
function
isSuccessful
()
16
{
17
$success = isset($this->data[
'ACK'
]) && in_array($this->data[
'ACK'
], array(
'Success'
,
'SuccessWithWarning'
));
18
return
!$this->
isRedirect
() && $success;
19
}
20
26
public
function
isRedirect
()
27
{
28
return
isset($this->data[
'L_ERRORCODE0'
]) && in_array($this->data[
'L_ERRORCODE0'
], array(
'10486'
));
29
}
30
36
public
function
getTransactionReference
()
37
{
38
if
($this->
isSuccessful
() && isset($this->data[
'PAYMENTINFO_0_TRANSACTIONID'
])) {
39
return
$this->data[
'PAYMENTINFO_0_TRANSACTIONID'
];
40
}
41
42
return
parent::getTransactionReference();
43
}
44
}
Omnipay\PayPal\Message\ExpressCompletePurchaseResponse\isSuccessful
isSuccessful()
Definition:
lib/vendor/omnipay/paypal/src/Message/ExpressCompletePurchaseResponse.php:15
Omnipay\PayPal\Message\ExpressCompletePurchaseResponse\isRedirect
isRedirect()
Definition:
lib/vendor/omnipay/paypal/src/Message/ExpressCompletePurchaseResponse.php:26
Omnipay\PayPal\Message\ExpressCompletePurchaseResponse
Definition:
lib/vendor/omnipay/paypal/src/Message/ExpressCompletePurchaseResponse.php:8
Omnipay\PayPal\Message\ExpressAuthorizeResponse
Definition:
lib/vendor/omnipay/paypal/src/Message/ExpressAuthorizeResponse.php:10
Omnipay\PayPal\Message\ExpressCompletePurchaseResponse\getTransactionReference
getTransactionReference()
Definition:
lib/vendor/omnipay/paypal/src/Message/ExpressCompletePurchaseResponse.php:36
Omnipay\PayPal\Message
Definition:
lib/vendor/omnipay/paypal/src/Message/AbstractRequest.php:6
plugins
paymethod
paypal
lib
vendor
omnipay
paypal
src
Message
ExpressCompletePurchaseResponse.php
Generated on Fri Aug 28 2020 14:51:44 for Open Journal Systems by
1.8.17