You are here

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\Method

Code

public function getPaymentExecutionResult() {
  return new OperationResult(new Response(Url::fromUri('http://example.com')));
}