| @@ 41-50 (lines=10) @@ | ||
| 38 | * |
|
| 39 | * @return Response |
|
| 40 | */ |
|
| 41 | public function formAction(Request $request) |
|
| 42 | { |
|
| 43 | $payment = $this->handleCallback($request); |
|
| 44 | $siteSettings = $this->getSiteSettings($payment); |
|
| 45 | ||
| 46 | return $this->render('@LoevgaardDandomainAltapay/callback/form.html.twig', [ |
|
| 47 | 'payment' => $payment, |
|
| 48 | 'siteSettings' => $siteSettings, |
|
| 49 | ]); |
|
| 50 | } |
|
| 51 | ||
| 52 | /** |
|
| 53 | * @Method("POST") |
|
| @@ 86-95 (lines=10) @@ | ||
| 83 | * @throws PaymentException |
|
| 84 | * @return Response |
|
| 85 | */ |
|
| 86 | public function failAction(Request $request) |
|
| 87 | { |
|
| 88 | $payment = $this->handleCallback($request); |
|
| 89 | $siteSettings = $this->getSiteSettings($payment); |
|
| 90 | ||
| 91 | return $this->render('@LoevgaardDandomainAltapay/callback/fail.html.twig', [ |
|
| 92 | 'payment' => $payment, |
|
| 93 | 'siteSettings' => $siteSettings, |
|
| 94 | ]); |
|
| 95 | } |
|
| 96 | ||
| 97 | /** |
|
| 98 | * @Method("POST") |
|
| @@ 108-117 (lines=10) @@ | ||
| 105 | * @throws PaymentException |
|
| 106 | * @return Response |
|
| 107 | */ |
|
| 108 | public function redirectAction(Request $request) |
|
| 109 | { |
|
| 110 | $payment = $this->handleCallback($request); |
|
| 111 | $siteSettings = $this->getSiteSettings($payment); |
|
| 112 | ||
| 113 | return $this->render('@LoevgaardDandomainAltapay/callback/redirect.html.twig', [ |
|
| 114 | 'payment' => $payment, |
|
| 115 | 'siteSettings' => $siteSettings, |
|
| 116 | ]); |
|
| 117 | } |
|
| 118 | ||
| 119 | /** |
|
| 120 | * @Method("POST") |
|
| @@ 130-139 (lines=10) @@ | ||
| 127 | * @throws PaymentException |
|
| 128 | * @return Response |
|
| 129 | */ |
|
| 130 | public function openAction(Request $request) |
|
| 131 | { |
|
| 132 | $payment = $this->handleCallback($request); |
|
| 133 | $siteSettings = $this->getSiteSettings($payment); |
|
| 134 | ||
| 135 | return $this->render('@LoevgaardDandomainAltapay/callback/open.html.twig', [ |
|
| 136 | 'payment' => $payment, |
|
| 137 | 'siteSettings' => $siteSettings, |
|
| 138 | ]); |
|
| 139 | } |
|
| 140 | ||
| 141 | /** |
|
| 142 | * @Method("POST") |
|