You are here

public function MolliePayment::doRefundPayment in Mollie Payment 8.2

Performs the actual payment refund.

Overrides PaymentMethodBase::doRefundPayment

File

src/Plugin/Payment/Method/MolliePayment.php, line 235

Class

MolliePayment
A payment method using Mollie.

Namespace

Drupal\mollie_payment\Plugin\Payment\Method

Code

public function doRefundPayment() {
  $this
    ->getPayment()
    ->setPaymentStatus($this->paymentStatusManager
    ->createInstance($this
    ->getRefundStatusId()));
  $this
    ->getPayment()
    ->save();
}