Closed hozyali closed 4 years ago
$auth_code shouldn't be access_token, but is returned once you redirect the users to $url
so they can sign in.
$url = $this->oAuthService->redirectUrlForUser([ 'state' => $state, 'scope' => [ 'https://api.ebay.com/oauth/api_scope/sell.account', 'https://api.ebay.com/oauth/api_scope/sell.inventory' ] ]);
Whatever page you put in the redirect settings in eBay will have a code
variable in the url.
Hi, for a custom ebay order management system, I need the user to authorize my app that I already created in ebay sandbox and production both. I am copying the sample code from oAuth-tokens folder and trying to setup the app authorization screen. When merging the get app auth and get user token both, the screen goes blank. Enabled error debugging as well, but nothing.
Here is my current code. Sorry I am newbie with this, I am sure I am doing something wrong.