/** * {@inheritdoc} */ public function getCancelUrl(PaymentInterface $payment) : string { return $this->getRouterHelper()->generateUrl('front.paypal.cancel', ['token' => $payment->getToken()]); }
private function createRedirectUrls(PaymentInterface $payment) : RedirectUrls { $redirectUrls = new RedirectUrls(); $redirectUrls->setReturnUrl($this->routerHelper->generateUrl('front.payment.confirm', ['token' => $payment->getToken()])); $redirectUrls->setCancelUrl($this->routerHelper->generateUrl('front.payment.cancel', ['token' => $payment->getToken()])); return $redirectUrls; }