public function PaymentTestResponse::getPaymentExecutionResult in Payment 8.2
Gets the payment execution status.
Return value
\Drupal\payment\OperationResultInterface
Overrides PaymentMethodBase::getPaymentExecutionResult
File
- modules/
payment_test/ src/ Plugin/ Payment/ Method/ PaymentTestResponse.php, line 28
Class
- PaymentTestResponse
- A testing payment method.
Namespace
Drupal\payment_test\Plugin\Payment\MethodCode
public function getPaymentExecutionResult() {
return new OperationResult(new Response(Url::fromUri('http://example.com')));
}