Skip to content

Commit

Permalink
Merge pull request #12 from thelia-modules/fix/redirect-response
Browse files Browse the repository at this point in the history
fix: fix PayPlugModule.php
  • Loading branch information
zawaze authored Apr 5, 2024
2 parents c8769b1 + 8f7e41b commit feacae0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Config/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<language>en_US</language>
<language>fr_FR</language>
</languages>
<version>2.0.3</version>
<version>2.0.4</version>
<authors>
<author>
<name>Vincent Lopes-Vicente</name>
Expand Down
2 changes: 1 addition & 1 deletion PayPlugModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function pay(Order $order)
if ($this->getRequest()->isXmlHttpRequest()) {
return new JsonResponse(['error' => $exception->getMessage()], 400);
}
return RedirectResponse::create(URL::getInstance()->absoluteUrl('error'));
return new RedirectResponse(URL::getInstance()->absoluteUrl('error'));
}

return new RedirectResponse($payment['url']);
Expand Down

0 comments on commit feacae0

Please sign in to comment.