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'
File
- src/
Controller/ Redirect.php, line 23
Class
- Redirect
- Handles the "redirect" route.
Namespace
Drupal\mollie_payment\ControllerCode
public function execute(PaymentInterface $payment) {
$response = $payment
->getPaymentType()
->getResumeContextResponse();
return $response
->getResponse();
}