Open Journal Systems
3.3.0
vendor/omnipay/paypal/src/Message/RestRefundCaptureRequest.php
1
<?php
6
namespace
Omnipay\PayPal\Message
;
7
17
class
RestRefundCaptureRequest
extends
AbstractRestRequest
18
{
19
public
function
getData
()
20
{
21
$this->
validate
(
'transactionReference'
);
22
23
return
array(
24
'amount'
=> array(
25
'currency'
=> $this->
getCurrency
(),
26
'total'
=> $this->
getAmount
(),
27
),
28
'description'
=> $this->
getDescription
(),
29
);
30
}
31
32
public
function
getEndpoint
()
33
{
34
return
parent::getEndpoint() .
'/payments/capture/'
. $this->
getTransactionReference
() .
'/refund'
;
35
}
36
}
Omnipay\PayPal\Message\RestRefundCaptureRequest\getEndpoint
getEndpoint()
Definition:
vendor/omnipay/paypal/src/Message/RestRefundCaptureRequest.php:32
Omnipay\Common\Message\AbstractRequest\getCurrency
getCurrency()
Definition:
lib/vendor/omnipay/common/src/Omnipay/Common/Message/AbstractRequest.php:391
Omnipay\Common\Message\AbstractRequest\getDescription
getDescription()
Definition:
lib/vendor/omnipay/common/src/Omnipay/Common/Message/AbstractRequest.php:461
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\RestRefundCaptureRequest\getData
getData()
Definition:
vendor/omnipay/paypal/src/Message/RestRefundCaptureRequest.php:19
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
RestRefundCaptureRequest.php
Generated on Fri Aug 28 2020 14:53:29 for Open Journal Systems by
1.8.17