You are here

private function Redirect::getResponse in PayPal for Payment 8

Same name and namespace in other branches
  1. 2.0.x src/Controller/Redirect.php \Drupal\paypal_payment\Controller\Redirect::getResponse()

Parameters

\Drupal\payment\Entity\PaymentInterface $payment:

Return value

\Symfony\Component\HttpFoundation\Response

2 calls to Redirect::getResponse()
Redirect::cancel in src/Controller/Redirect.php
Redirect::execute in src/Controller/Redirect.php
PayPal 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.

File

src/Controller/Redirect.php, line 111

Class

Redirect
Handles the "redirect" route.

Namespace

Drupal\paypal_payment\Controller

Code

private function getResponse(PaymentInterface $payment) : Response {
  $response = $payment
    ->getPaymentType()
    ->getResumeContextResponse();
  return $response
    ->getResponse();
}