In an ongoing effort to protect APIs and its users, eBay has enabled OAuth authorization for the Shopping API.
The eBay module uses this API to synchronize the terms of sale and return that you created on the eBay account, as well as the product characteristics.
To allow the module to function correctly, following this change, you will therefore have to create an account at https://developer.ebay.com/.
How to configure the authorization token in the eBay module?
After creating your account on https://developer.ebay.com/, you will need to obtain the token that allows the module to have the necessary permissions to synchronize commercial policies and product characteristics.
First of all, open the module configurations.
![](https://desk.202-ecommerce.com/galleryDocuments/edbsncbdc706b1969c23a00a1269e8f8d3138d01025e0948931373c518c986b74609af73defa499f7abcc17e46ff654e5ed49acec3a00696cc58a40d715c5a40a6a4c?inline=true)
In the “General Settings” tab you will see three buttons that allow you to manage the token.
1) Click on “Configure Onboarding“.
A new window will open. Here, you will need to enter some parameters that come from your eBay developer account.
2) In this window it is indicated “Your auth accepted URL“. You will need it later.
3) Leave this page open and, in another tab of your browser, log in to https://developer.ebay.com/
4) Click on “Application Keysets”
![](https://desk.202-ecommerce.com/galleryDocuments/edbsncbdc706b1969c23a00a1269e8f8d3138ce293cb0d2f01131152e40293bcd6c386523a480e041d7ffe98b3f3ee3aab6b0294b94b879b58aa4fd7ba4b9ce1de493?inline=true)
5) Here you should see the strings useful for configuring the module.
![](https://desk.202-ecommerce.com/galleryDocuments/edbsncbdc706b1969c23a00a1269e8f8d313822b0ec04d8af34ae8081b36fe4960b54543cf648ccceb19efcf16ff346c4f1b4addb6a9cd8a1a2938d2ddb07015ffde4?inline=true)
Your page might look different:
and in this case you would see the message “Your keyset is currently disabled”.
![](https://desk.202-ecommerce.com/galleryDocuments/edbsncbdc706b1969c23a00a1269e8f8d3138aa9a9177049329c1c4f01d7447d6c95055a95d6d653a87872cdcb6f12b7b8e490169debad4b5fda3f0c531775f313cd6?inline=true)
In this case, click on “marketplace deletion/account clousure notification”.
Then, in “Alerts & Notifications” tab set to not persisting data as in the image below.
![](https://desk.202-ecommerce.com/galleryDocuments/edbsncbdc706b1969c23a00a1269e8f8d31386e7c11865d4aea4c813f85eba0624ed5e9c46cf199d6977a10490cf971d38f791db819ea6dd07ae9500ef53bc1e226b9?inline=true)
Click on “Submit”.
6) Copy your App ID (Client ID)
Return to the module configuration page and paste it in the APP ID field of the eBay module.
7) Return to the eBay developer program page and copy your Cert ID (Client Secret)
![](https://desk.202-ecommerce.com/galleryDocuments/edbsncbdc706b1969c23a00a1269e8f8d3138f195b60b5d86c519f0bb9f715d58a0857d67919a17cf889d5e462d2bab469ddeca5eade027d3cc065bc33b08c973245b?inline=true)
8) on eBay developer program site, Click on “User access tokens”
![](https://desk.202-ecommerce.com/galleryDocuments/edbsncbdc706b1969c23a00a1269e8f8d3138cf220d8019aa7432050264fa8afe5d48d1cce44d7d8279a1edcbc6ba2102fdf428b96e9707d85c58df68e3e0a2fd4835?inline=true)
9) Choose the Production environment and click on Get a Token from eBay via Your Application
10) Here you will have access to the missing strings to complete the module configuration:
– RuName (eBay Redirect URL name)
– Your branded eBay Production Sign In (OAuth)
Your page might look different:
and in this case you would see the message “You have no Redirect URL. Click here to add one”. In this case, click on the link.
and fill information in the form
Click on “Continue to create RuName” to save.
11) Paste “RuName” and “Your branded eBay Production Sign In (OAuth)” in the corresponding fields of the eBay module.
Save changes.
12) You‘re almost done. You just have to fill in the “Your auth accepted URL” field
This URL is indicated by the eBay module.
Copy and paste.
13) Select the type of authorization on OAuth and click on the “Test Sign-in” button to verify that everything is correct.
14) Give your consent to allow eBay to interact with PrestaShop
15) You will be redirected back to eBay module configuration page, and you will be able to finish your token configuration.
16) Now click on “Generate OAuth token”…
![](https://desk.202-ecommerce.com/galleryDocuments/edbsncbdc706b1969c23a00a1269e8f8d3138ca6e2a805aa02b781a20f0a387f783b91979217d55953d2dbf137389604ef3151a8eb7aa48c858af596743ceec7d5640?inline=true)
…and give your consent to allow eBay to interact with PrestaShop
17) Save the changes of eBay module
To test
the correct functioning of the token, you can also click on the
“Refresh Token” button and check if the token automatically entered in
the “user authorization token” field changes. If the token always displays the same character string, there is probably a problem with the management of the token.
To test the correct functioning of the token, equally, you can modify a product category associated with eBay:
During
the first step of the configuration, the module will display menus to
choose from your payment and return policies, as on the image
![](https://desk.202-ecommerce.com/galleryDocuments/edbsncbdc706b1969c23a00a1269e8f8d3138ed0d35c5ac600e14f029d1b6183c502932c1bbe2ed4560c6c854a294d12424fe42286878915c43eca2259ae20e90481f?inline=true)
Warning: Payment policies may not appear if they have not been created on your eBay account. Check on the Businesspolicy/manage page if any return or payment conditions have already been created.