I have integrated Pay with Amazon payment module and getting error while redirect to amazon site.

Below is the error messages:

We're sorry! An error occurred when we tried to process your request. Rest assured, we're already working on the problem and expect to resolve it shortly.

Error Summary 400 Bad Request - The redirect URI you provided has not been white-listed for your application

  • redirect is on https ? Amazon requires this
    – Klettseb
    Feb 20, 2015 at 8:03
  • Yes, we have enabled SSL.. Feb 20, 2015 at 8:19
  • I have also added header on server <ifModule mod_headers.c> Header set Access-Control-Allow-Origin: * </ifModule> Feb 20, 2015 at 8:20
  • Check from the amazon side, may be theie can be some error with your account or misconfiguration
    – Prashanta
    Feb 20, 2015 at 14:39

1 Answer 1


You need to white list your domain in seller central. Log in, select Login with Amazon from the drop down at the top of the page. Once there, populate your domain in the "Allowed JavaScript Origins section. Also add the return URL you specified to allowed return URLs.

  • Yes, i am able to resolved this issue..I have defined store url in amazon seller account.. Feb 23, 2015 at 6:51
  • hi abhishek, i have the same problem, i am using amazon pay in localhost. how to test amazon on localhost. ? What should i define "Allow javascript" under websetting. thanks in advance Oct 24, 2017 at 9:33
  • You can use http://localhost for allowed javascript origins. The "localhost" entry does not require a certificate (https). You can also include a port if your local web server is running on a non-standard one. e.g. http://localhost:3000.
    – Brent D.
    Oct 25, 2017 at 22:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.