You are here

public function CompletePayment::execute in Payment 8.2

Completes a payment.

Parameters

\Drupal\payment\Entity\PaymentInterface $payment:

Return value

\Symfony\Component\HttpFoundation\Response

1 string reference to 'CompletePayment::execute'
payment.routing.yml in ./payment.routing.yml
payment.routing.yml

File

src/Controller/CompletePayment.php, line 19

Class

CompletePayment
Handles the "complete payment" route.

Namespace

Drupal\payment\Controller

Code

public function execute(PaymentInterface $payment) {
  return $payment
    ->getPaymentMethod()
    ->getPaymentExecutionResult()
    ->getCompletionResponse()
    ->getResponse();
}