File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ public function process_authorization() {
107107 $ redirect_uri = $ this ->check_url_for_idn_format ( $ redirect_uri );
108108
109109 $ params ['code ' ] = sanitize_text_field ( wp_unslash ( $ _REQUEST ['code ' ] ) );
110+ $ params ['store_id ' ] = sanitize_text_field ( wp_unslash ( $ _REQUEST ['store_id ' ] ) );
110111 $ params ['client_id ' ] = Ecwid_Config::get_oauth_appid ();
111112 $ params ['client_secret ' ] = Ecwid_Config::get_oauth_appsecret ();
112113 $ params ['redirect_uri ' ] = $ redirect_uri ;
@@ -115,7 +116,7 @@ public function process_authorization() {
115116
116117 $ request = Ecwid_HTTP::create_post (
117118 'oauth_authorize ' ,
118- Ecwid_Config::get_oauth_token_url (),
119+ Ecwid_Config::get_oauth_token_url () . ' / ' . $ params [ ' store_id ' ] ,
119120 array (
120121 Ecwid_HTTP::POLICY_RETURN_VERBOSE ,
121122 )
You can’t perform that action at this time.
0 commit comments