Skip to content

Commit 939c928

Browse files
author
Maksim Rafalko
committed
Merge remote-tracking branch 'upstream/master'
2 parents 4dc3487 + 4354f9c commit 939c928

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Omnipay/PayPal/Message/RefundRequest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ public function getData()
2424

2525
$data['TRANSACTIONID'] = $this->getTransactionReference();
2626
$data['REFUNDTYPE'] = 'Full';
27+
if ($this->getAmountDecimal() > 0) {
28+
$data['REFUNDTYPE'] = 'Partial';
29+
$data['AMT'] = $this->getAmountDecimal();
30+
$data['CURRENCYCODE'] = $this->getCurrency();
31+
}
2732

2833
return $data;
2934
}

0 commit comments

Comments
 (0)