public function Basic::doCapturePayment in Payment 8.2
Performs the actual payment capture.
Overrides PaymentMethodBase::doCapturePayment
File
- src/
Plugin/ Payment/ Method/ Basic.php, line 156
Class
- Basic
- A basic payment method that does not transfer money.
Namespace
Drupal\payment\Plugin\Payment\MethodCode
public function doCapturePayment() {
$this
->getPayment()
->setPaymentStatus($this->paymentStatusManager
->createInstance($this
->getCaptureStatusId()));
$this
->getPayment()
->save();
}