Skip to content

Commit fc27d1d

Browse files
committed
Merge pull request #26 from P0rnflake/patch-1
Patch 1, resolves Issue #25
2 parents e684a8f + 2b2cf76 commit fc27d1d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Payum/PayumModule/Controller/AuthorizeController.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function doAction()
1919
$gateway->execute(new Authorize($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
}

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
}

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)