[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
Jurnal PSCP
/
plugins
/
paymethod
/
paypal
/
vendor
/
omnipay
/
paypal
/
src
/
Message
/
[
Home
]
File: RefundRequest.php
<?php namespace Omnipay\PayPal\Message; /** * PayPal Refund Request */ class RefundRequest extends AbstractRequest { public function getData() { $this->validate('transactionReference'); $data = $this->getBaseData(); $data['METHOD'] = 'RefundTransaction'; $data['TRANSACTIONID'] = $this->getTransactionReference(); $data['REFUNDTYPE'] = 'Full'; if ($this->getAmount() > 0) { $data['REFUNDTYPE'] = 'Partial'; $data['AMT'] = $this->getAmount(); $data['CURRENCYCODE'] = $this->getCurrency(); } return $data; } }