Open Journal Systems
3.3.0
vendor/omnipay/paypal/src/Message/RestCaptureRequest.php
1
<?php
6
namespace
Omnipay\PayPal\Message
;
7
40
class
RestCaptureRequest
extends
AbstractRestRequest
41
{
42
public
function
getData
()
43
{
44
$this->
validate
(
'transactionReference'
,
'amount'
);
45
46
return
array(
47
'amount'
=> array(
48
'currency'
=> $this->
getCurrency
(),
49
'total'
=> $this->
getAmount
(),
50
),
51
'is_final_capture'
=>
true
,
52
);
53
}
54
55
public
function
getEndpoint
()
56
{
57
return
parent::getEndpoint() .
'/payments/authorization/'
. $this->
getTransactionReference
() .
'/capture'
;
58
}
59
}
Omnipay\Common\Message\AbstractRequest\getCurrency
getCurrency()
Definition:
lib/vendor/omnipay/common/src/Omnipay/Common/Message/AbstractRequest.php:391
Omnipay\PayPal\Message\RestCaptureRequest\getData
getData()
Definition:
vendor/omnipay/paypal/src/Message/RestCaptureRequest.php:42
Omnipay\PayPal\Message\RestCaptureRequest\getEndpoint
getEndpoint()
Definition:
vendor/omnipay/paypal/src/Message/RestCaptureRequest.php:55
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\Common\Message\AbstractRequest\getAmount
getAmount()
Definition:
lib/vendor/omnipay/common/src/Omnipay/Common/Message/AbstractRequest.php:327
plugins
paymethod
paypal
vendor
omnipay
paypal
src
Message
RestCaptureRequest.php
Generated on Fri Aug 28 2020 14:53:27 for Open Journal Systems by
1.8.17