protected function PaymentTestNoResponse::doExecutePayment in Payment 8.2
Performs the actual payment execution.
Overrides PaymentMethodBase::doExecutePayment
File
- modules/
payment_test/ src/ Plugin/ Payment/ Method/ PaymentTestNoResponse.php, line 34
Class
- PaymentTestNoResponse
- A testing payment method.
Namespace
Drupal\payment_test\Plugin\Payment\MethodCode
protected function doExecutePayment() {
$this
->getPayment()
->setPaymentStatus($this->paymentStatusManager
->createInstance('payment_success'));
$this
->getPayment()
->save();
}