You are here

public function MolliePayment::doCapturePayment in Mollie Payment 8.2

Performs the actual payment capture.

Overrides PaymentMethodBase::doCapturePayment

File

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

Class

MolliePayment
A payment method using Mollie.

Namespace

Drupal\mollie_payment\Plugin\Payment\Method

Code

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