looxis / laravel-amazon-mws

Simple Amazon MWS Laravel integration
MIT License
31 stars 9 forks source link

AccessDenied - Missing required MWSAuthToken for Seller. #13

Closed mirkos93 closed 4 years ago

mirkos93 commented 4 years ago

Description:

Has on the subject, Amazon requires me the MWSAuthToken, but i don't know how to set it on that package

Steps To Reproduce:

AmazonMWS::feeds()
->setType($feedType) //_POST_PRODUCT_DATA_ 
->setContent($xml) //A valid XML
->submit();
krizzdev commented 4 years ago

Hi @mirkos93 I haven't used the _POST_PRODUCTDATA type yet. But you're right. We haven't added MWSAuthToken to our QueryString as a parameter. It worked for us without. Do you need to add the mws auth token in the https://mws.amazonservices.com/scratchpad/index.html too ?

I'll try to add it without breaking the current version and come back to you again.

krizzdev commented 4 years ago

Added MWSAuthToken to request params now in 0.1.10. Can you update and check if it works?

Don't forget to add 'mws_auth_token' => env('MWS_AUTH_TOKEN'), to your amazon-mws.php if you've published it to your project.

mirkos93 commented 4 years ago

@krizzdev It worked perfectly. Thanks so much