Пример #1
0
 /**
  * Import refund results to payment
  *
  * @param \Magento\Paypal\Model\Api\Nvp $api
  * @param \Magento\Sales\Model\Order\Payment $payment
  * @param bool $canRefundMore
  * @return void
  */
 protected function _importRefundResultToPayment($api, $payment, $canRefundMore)
 {
     $payment->setTransactionId($api->getRefundTransactionId())->setIsTransactionClosed(1)->setShouldCloseParentTransaction(!$canRefundMore);
     $this->importPaymentInfo($api, $payment);
 }