Skip to content

Commit e10f9d3

Browse files
committed
1 parent e684a8f commit e10f9d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Payum/PayumModule/Controller/CaptureController.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function doAction()
1919
$gateway->execute(new Capture($token));
2020
} catch (ReplyInterface $reply) {
2121
if ($reply instanceof HttpRedirect) {
22-
$this->redirect()->toUrl($reply->getUrl());
22+
return $this->redirect()->toUrl($reply->getUrl());
2323
}
2424

2525
if ($reply instanceof HttpResponse) {
@@ -37,6 +37,6 @@ public function doAction()
3737

3838
$this->getHttpRequestVerifier()->invalidate($token);
3939

40-
$this->redirect()->toUrl($token->getAfterUrl());
40+
return $this->redirect()->toUrl($token->getAfterUrl());
4141
}
4242
}

0 commit comments

Comments
 (0)