You are here

public function Redirect::execute in Mollie Payment 8.2

Mollie is redirecting the visitor here after the payment process. At this point we don't know the status of the payment yet so we can only load the payment and give control back to the payment context.

Parameters

\Drupal\payment\Entity\PaymentInterface $payment:

1 string reference to 'Redirect::execute'
mollie_payment.routing.yml in ./mollie_payment.routing.yml
mollie_payment.routing.yml

File

src/Controller/Redirect.php, line 23

Class

Redirect
Handles the "redirect" route.

Namespace

Drupal\mollie_payment\Controller

Code

public function execute(PaymentInterface $payment) {
  $response = $payment
    ->getPaymentType()
    ->getResumeContextResponse();
  return $response
    ->getResponse();
}