File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Controller/Adminhtml/Config Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 44
55namespace Payplug \Payments \Controller \Adminhtml \Config ;
66
7+ use Laminas \Http \Response ;
78use Magento \Backend \App \Action ;
89use Magento \Backend \App \Action \Context ;
910use Magento \Backend \Model \Auth \Session as AdminAuthSession ;
@@ -57,7 +58,10 @@ public function execute(): ResultInterface
5758 try {
5859 PayplugAuthentication::initiateOAuth ($ clientId , $ callbackUrl , $ codeVerifier );
5960
60- return $ this ->rawFactory ->create ();
61+ $ result = $ this ->rawFactory ->create ();
62+ $ result ->setHttpResponseCode (Response::STATUS_CODE_302 );
63+
64+ return $ result ;
6165 } catch (ConfigurationException $ e ) {
6266 $ this ->logger ->error ($ e ->getMessage ());
6367 $ this ->messageManager ->addErrorMessage (__ ('Could not retrieve Auth Code from Payplug Portal ' ));
You can’t perform that action at this time.
0 commit comments