예제 #1
0
 /**
  * Prepare payment data for refund
  *
  * @param \Magento\Sales\Model\Order\Creditmemo $creditmemo
  * @return void
  */
 protected function preparePayment(\Magento\Sales\Model\Order\Creditmemo $creditmemo)
 {
     if (!$creditmemo->getPaymentRefundDisallowed()) {
         $creditmemo->getOrder()->getPayment()->refund($creditmemo);
     }
 }