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