Skip to content

Commit c82bb22

Browse files
committed
PLUGINS-6324
1 parent 03695e0 commit c82bb22

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

includes/class-ecwid-oauth.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
)

0 commit comments

Comments
 (0)