Jump to content

Amazon Payments Module Broken


Recommended Posts

Running a Prestashop 1.6.1.2 store with the Amazon Payments Module v 2.0.18.  When attempting to login i am redirected to Amazon's website as expect, i login successfully then i am redirected back to my own site.  Once I arrive back at my own site i am greeted with the following error:

 

l2XLgh7.png

 

Has anyone ran into something like this?

Edited by rever5e (see edit history)
Link to comment
Share on other sites

This is the generic message of PrestaShop. Could you please look in your php-errorlog? There you should find a specific message what's going wrong. At this specific point, this message usually appears if there is some problem with php-curl, fetching the user-data from Amazon. Could be server-related or configuration-related.

 

If you need further support, please contact us at [email protected]. That's the fastest way to get to us, so we can help. Thanks!

Link to comment
Share on other sites

Hmm i don't see any errors in the PHP log.  I'm going to investigate this more.

 

It doesn't look like a generic error from Prestashop it's been triggered when the AJAX request fails as far as i can tell from this snippet.

    $(document).ready(function() {
        $.ajax({
            type: 'GET',
            url: SETUSERAJAX,
            data: 'ajax=true&method=setusertoshop&access_token=' + accessToken,
            success: function(htmlcontent) {
                if (htmlcontent == 'error') {
                    alert('An error occured - please try again or contact our support');
                } else {
                    window.location = htmlcontent;
                }
            }
        });
    });;

The only other potential issue i can see is the following error in the debugger console:

 

VJ21Uoc.png

Link to comment
Share on other sites

The AJAX request returns "error". So this is the generic message ;)

But when "error" is returned, there must be an entry in the error-log.

 

Ah yes i see the PHP error now: "Error, method not submitted and no token"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...