diff --git a/src/Controller/GatewayController.php b/src/Controller/GatewayController.php new file mode 100644 index 0000000..a94f2d0 --- /dev/null +++ b/src/Controller/GatewayController.php @@ -0,0 +1,36 @@ +gatewayLocator->getGateway($request->query->get('gateway')); + $checkout = $gateway->handleRedirect($request); + + $this->entityManager->persist($checkout); + $this->entityManager->flush(); + + // TO-DO: This should redirect the user to a GUI + return new RedirectResponse($this->iriConverter->getIriFromResource($checkout)); + } +}