Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit a0444a1

Browse files
committed
MAGETWO-71771: imposible perform full refund for Order Paid with PayPal Payments Standart
- Format price before sending to API
1 parent 4d9d6b0 commit a0444a1

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Paypal/Model/Api

1 file changed

+1
-1
lines changed

app/code/Magento/Paypal/Model/Api/Nvp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ public function callRefundTransaction()
991991
{
992992
$request = $this->_exportToRequest($this->_refundTransactionRequest);
993993
if ($this->getRefundType() === \Magento\Paypal\Model\Config::REFUND_TYPE_PARTIAL) {
994-
$request['AMT'] = $this->getAmount();
994+
$request['AMT'] = $this->formatPrice($this->getAmount());
995995
}
996996
$response = $this->call(self::REFUND_TRANSACTION, $request);
997997
$this->_importFromResponse($this->_refundTransactionResponse, $response);

0 commit comments

Comments
 (0)