We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abf7215 commit 2b2cf76Copy full SHA for 2b2cf76
src/Payum/PayumModule/Controller/RefundController.php
@@ -20,7 +20,7 @@ public function doAction()
20
$gateway->execute(new Refund($token));
21
} catch (ReplyInterface $reply) {
22
if ($reply instanceof HttpRedirect) {
23
- $this->redirect()->toUrl($reply->getUrl());
+ return $this->redirect()->toUrl($reply->getUrl());
24
}
25
26
if ($reply instanceof HttpResponse) {
@@ -36,6 +36,6 @@ public function doAction()
36
throw new \LogicException('Unsupported reply', null, $reply);
37
38
39
- $this->redirect()->toUrl($token->getAfterUrl());
+ return $this->redirect()->toUrl($token->getAfterUrl());
40
41
0 commit comments