Jump to content

authorize.net not working if cart refreshed or leave/return to cart


Recommended Posts

Hi,

I'm using prestashop 1.6.9, default bootstrap theme.  Authorize.net works fine if someone goes to the cart and checks out. It's fine if someone adds to the products that are already in the cart or switches addresses already in the drop down menus. 

 

However, if one leaves/returns or refreshes the page, the link to open the authorize.net credit card information block does not work.  Instead, the browser is redirected to the top of the page.  Everything else in the site is working just fine.  It is only the link to open the credit card information that becomes inoperable.

 

I have uninstalled-deleted/reinstalled the module. My google search on this comes up empty.  I've compared the html in both cases and it's identical. There's no error shown in Firebug. The only difference I can find is in the cookies.  Their content is radically different in each case.  Evidently, support at authorize.net was not able to resolve this when my client contacted them.

 

Other than using a different payment option, any suggestions?  Any and all help is greatly appreciated.

 

 

Link to comment
Share on other sites

Well, after reading more about cURL, SSL, authorize.net, etc., etc., than I ever wanted, the above error had nothing to do with that.

The problem flows from when the user clicks on the agree to terms of service button.  This then changes the content of the cookie and allows for the link to the credit card information to open the box.  Navigating away from the page, then back to the page or refreshing the page leaves the agree to terms of service box checked.

I have duplicated this error in Firefox, Chrome and Safari.

However, upon return to the cart, the contents of the cookie must not reflect that I have already agreed to the terms of service.  The cookie contents do change when I refresh or navigate away. Upon return to the cart and even though the accept terms button is checked and the Please accept the Terms of Service row is gone and I can see and click on the Secured Card Payment link, I am not "authorized" to do that as the cookie must not reflect that I have previously done so.

My work around is going to be putting a warning under the accept terms button saying that if you leave this page you MUST uncheck and re-check this box before entering credit card information.

Rather inelegant.  But it is what it is.

I'd appreciate learning from anybody else with PrestaShop v1.6.9 default-bootstrap theme and authorize.net if they can recreate this error.  If so, then I'll enter a bug report.  The only other report of this error that I can find was
http://www.prestashop.com/forums/topic/313962-authorizenet-aim-module-not-working-at-checkout/
And that seems to have been somehow related to the Leo Slider Module, which I don't have.

Link to comment
Share on other sites

  • 2 weeks later...

After a lot of fruitless effort, I had the client go back to authorize.net despite their earlier statements that all was well on their side.  Turned out that they hadn't completely finalized the account on their side and that was throwing all sorts of errors on my site's credit card checkout .

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...