Open Journal Systems
3.3.0
vendor/omnipay/paypal/src/Message/RestCompletePurchaseRequest.php
1
<?php
6
namespace
Omnipay\PayPal\Message
;
7
48
class
RestCompletePurchaseRequest
extends
AbstractRestRequest
49
{
56
public
function
getData
()
57
{
58
$this->
validate
(
'transactionReference'
,
'payerId'
);
59
60
$data = array(
61
'payer_id'
=> $this->
getPayerId
()
62
);
63
64
return
$data;
65
}
66
67
public
function
getEndpoint
()
68
{
69
return
parent::getEndpoint() .
'/payments/payment/'
. $this->
getTransactionReference
() .
'/execute'
;
70
}
71
}
Omnipay\PayPal\Message\AbstractRestRequest\getPayerId
getPayerId()
Definition:
lib/vendor/omnipay/paypal/src/Message/AbstractRestRequest.php:104
Omnipay\PayPal\Message\RestCompletePurchaseRequest\getEndpoint
getEndpoint()
Definition:
vendor/omnipay/paypal/src/Message/RestCompletePurchaseRequest.php:67
Omnipay\Common\Message\AbstractRequest\getTransactionReference
getTransactionReference()
Definition:
lib/vendor/omnipay/common/src/Omnipay/Common/Message/AbstractRequest.php:508
Omnipay\Common\Message\AbstractRequest\validate
validate()
Definition:
lib/vendor/omnipay/common/src/Omnipay/Common/Message/AbstractRequest.php:226
Omnipay\PayPal\Message
Definition:
lib/vendor/omnipay/paypal/src/Message/AbstractRequest.php:6
Omnipay\PayPal\Message\RestCompletePurchaseRequest\getData
getData()
Definition:
vendor/omnipay/paypal/src/Message/RestCompletePurchaseRequest.php:56
plugins
paymethod
paypal
vendor
omnipay
paypal
src
Message
RestCompletePurchaseRequest.php
Generated on Fri Aug 28 2020 14:53:27 for Open Journal Systems by
1.8.17