We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e684a8f commit e10f9d3Copy full SHA for e10f9d3
src/Payum/PayumModule/Controller/CaptureController.php
@@ -19,7 +19,7 @@ public function doAction()
19
$gateway->execute(new Capture($token));
20
} catch (ReplyInterface $reply) {
21
if ($reply instanceof HttpRedirect) {
22
- $this->redirect()->toUrl($reply->getUrl());
+ return $this->redirect()->toUrl($reply->getUrl());
23
}
24
25
if ($reply instanceof HttpResponse) {
@@ -37,6 +37,6 @@ public function doAction()
37
38
$this->getHttpRequestVerifier()->invalidate($token);
39
40
- $this->redirect()->toUrl($token->getAfterUrl());
+ return $this->redirect()->toUrl($token->getAfterUrl());
41
42
0 commit comments