Skip to content

Commit 2b2cf76

Browse files
committed
Update RefundController.php
@see Payum#25
1 parent abf7215 commit 2b2cf76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Payum/PayumModule/Controller/RefundController.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function doAction()
2020
$gateway->execute(new Refund($token));
2121
} catch (ReplyInterface $reply) {
2222
if ($reply instanceof HttpRedirect) {
23-
$this->redirect()->toUrl($reply->getUrl());
23+
return $this->redirect()->toUrl($reply->getUrl());
2424
}
2525

2626
if ($reply instanceof HttpResponse) {
@@ -36,6 +36,6 @@ public function doAction()
3636
throw new \LogicException('Unsupported reply', null, $reply);
3737
}
3838

39-
$this->redirect()->toUrl($token->getAfterUrl());
39+
return $this->redirect()->toUrl($token->getAfterUrl());
4040
}
4141
}

0 commit comments

Comments
 (0)