[SOLVED!] 1.5.0.x Authorize.net Checkout Page Hanging Freeze

Question

For those of you with OpenCart 1.5.0.x (not sure about 1.5.1) and experiencing the issue of having Authorize.net hang at the very last step after entering the credit card information; or if you just confirm order without entering anything in the credit card fields waiting to see an error message - the symptom is the "Please Wait!" message and the spinning circle going on forever without anything happening or an error message popping up - hopefully this fix will work for you.

The error messages for the three Opencart 1.5.x sites I built in the back office error log are:

Code: Select all
2011-06-20 22:26:16 - PHP Notice: Undefined index: currency in /data/catalog/controller/payment/authorizenet_aim.php on line 86

2011-06-20 22:26:16 - PHP Notice: Undefined index: cc_number in /data/catalog/controller/payment/authorizenet_aim.php on line 90

2011-06-20 22:26:16 - PHP Notice: Undefined index: cc_expire_date_month in /data/catalog/controller/payment/authorizenet_aim.php on line 91

2011-06-20 22:26:16 - PHP Notice: Undefined index: cc_expire_date_year in /data/catalog/controller/payment/authorizenet_aim.php on line 91

2011-06-20 22:26:16 - PHP Notice: Undefined index: cc_cvv2 in /data/catalog/controller/payment/authorizenet_aim.php on line 92


After searching for 7+ hours on here and doing a bunch of trial and error and removing and reinstalling Opencart 1.5.0.x (all versions) half a dozen times, I finally found a working solution posted by jseverson:

Go to /catalog/view/theme/default/template/payment/authorizenet_aim.tpl

Around line 40, change:
Code: Select all
data: $('#authorizenet :input'),

to
Code: Select all
data: $('#payment :input'),


Note the space between "#payment" and ":input"

After this change the payment goes through (confirmed on both the store's back office and in Authorize.net's back end) and error messages pop up if one were to confirm the order without entering credit card information.

I will save the rant for another day, but I absolutely love Opencart and I am on my 7th site using it; I just wish this problem wouldn't (1) exist since Authorize.net is very popular and (2) there would be a clear solution by now.

I hope my solution works.

I am aware that Qphoria has a patch for 1.4.x and that typically this issue is a result of cURL not being compatible with OpenSSL, but neither was the case or applicable to my 1.5.0.x websites. Some threads here also suggested changing the response URLs in Authorize.net's back end and changing the connection time out setting in authorizenet_aim.php, but none of them worked in my cases.

Just for the record, out of the three sites experiencing this issue (and an additional 2 out of the 4 I am developing right now - I plugged in the clients' Authorize.net info to see if they hang, and they all do) - they are hosted on GoDaddy, SiteGround, iPage, HostGator, and FatCow.

Hopefully this post can help somebody out!

Best,
Kayla

Answers

Looks like this was fixed already for 1.5.1.1 or at least it is already fixed in SVN I see so if not in 1.5.1.1 it will def be in 1.5.2

Qphoria wrote:Looks like this was fixed already for 1.5.1.1 or at least it is already fixed in SVN I see so if not in 1.5.1.1 it will def be in 1.5.2


That's great to know, thanks for all your hard work and contributions to Opencart!

Did you say Q had a fix for this in the 1.4.X versions? I started getting this issue a couple of days ago and about pulled my hair out trying to find the source of the issue? Where is the 1.4x solution? Thx!

smorelli wrote:Did you say Q had a fix for this in the 1.4.X versions? I started getting this issue a couple of days ago and about pulled my hair out trying to find the source of the issue? Where is the 1.4x solution? Thx!


Hello, sorry for the late reply, but the patch is located here:

viewtopic.php?f=2&t=29976

Good luck!

Please help me though!

I'm in the same boat and have been searching and trying things for 7+ hours as well, and nothing works!

I'm using paypal website payments pro with opencart 1.5.1 and it just hangs on Please Wait!.

I have been purposely putting in credit card #'s, but it does not report back any error and just hangs there indefinitely. If I check the error log it shows incorrect CC info (which I'm doing on purpose to test what happens if a customer puts information in wrong), but nothing shows on the front-end.

Does anyone know how to resolve this??????

Edit: I have checked the API credentials 4 times and know they are correct.

Thank you!

I was told that there is a setting at Authorize.net that needed to be changed. I can't remember what it is exactly but it has to do whether to allow for multiple authorizations to go through on a single transaction. It essentially waits to respond in case you want to allow multiple part transactions on the same order, like paying with two credit cards or something. Anyway, by changing that it doesn't hang or wait like that and instead sends an immediate response.

I tried messing with the setting in paypal to allow payment data transfer and auto return to website upon complete and still no luck. This is very frustrating!

I figured it out! under catalog/view/theme/default/template/payment/pp_pro.tpl someone had told me to delete:

Code: Select all
 <tr>
      <td><?php echo $entry_cc_start_date; ?></td>
      <td><select name="cc_start_date_month">
          <?php foreach ($months as $month) { ?>
          <option value="<?php echo $month['value']; ?>"><?php echo $month['text']; ?></option>
          <?php } ?>
        </select>
        /
        <select name="cc_start_date_year">
          <?php foreach ($year_expire as $year) { ?>
          <option value="<?php echo $year['value']; ?>"><?php echo $year['text']; ?></option>
          <?php } ?>
        </select></td>
    </tr>


and:

Code: Select all
<tr>
      <td><?php echo $entry_cc_issue; ?></td>
      <td><input type="text" name="cc_issue" value="" size="3" /></td>
    </tr>


Since we don't use those in the States. I added them back in and hide them instead with
Code: Select all
<tr style="display:none">

and it worked!!

I just upgraded from 1.4.9.6 to 1.5.1.3 and now I am experiencing this wih my authorize.net aim. Worked perfect in old cart and the transactions get through and put order in shop back end. If card wrong or decline it will and say so but successful cards hang.

The space on the payment part is as posted by previous users and old very didn't do this. What could be problem here?

Just found fix for mine. It was in the catalog/controller/payment for aim and it was the part where it was adding he end of cc # to order comments per someone in forum. On phone or I'd find that topic. It technically worked and added the comment but I'm assuming there was some type of ; or something missing. I just copied my origional controller file over and it worked fine again. Then added my shipping address patch and it worked still. Only other change was the comment part do I'll look at hat when I get home.

I am currently running 1.5.2.1 and still getting this error. I have verified that the authorizenet.tpl is showing the correct data: $('#payment :input'),

2012-03-18 16:14:42 - PHP Notice: Error: Could not load library json! in /home/thedomes/public_html/store/vqmod/vqcache/vq2-system_engine_loader.php on line 24
2012-03-18 16:16:58 - PHP Notice: Undefined index: currency in /home/thedomes/public_html/store/catalog/controller/payment/authorizenet_aim.php on line 86
2012-03-18 16:17:03 - PHP Notice: Error: Could not load library json! in /home/thedomes/public_html/store/vqmod/vqcache/vq2-system_engine_loader.php on line 24
2012-03-18 16:22:49 - PHP Notice: Undefined index: currency in /home/thedomes/public_html/store/catalog/controller/payment/authorizenet_aim.php on line 86
2012-03-18 16:22:51 - PHP Notice: Error: Could not load library json! in /home/thedomes/public_html/store/vqmod/vqcache/vq2-system_engine_loader.php on line 24

Source: http://forum.opencart.com/viewtopic.php?t=39094

More

  • Re: ask-robots.txt
    QuestionRobots.txt allows you to specify which pages should not be crawled and if you not allow to crawl then you can restrict that page with the use of robot.txt. It contains restrictions for Web Spiders, telling them where they have permission to search.Answersini kok ngga ada yg bantu jawab yak... sy jg lg butuh info ini. klo di wp yg kita
  • How to edit the way products list appear?
    QuestionHow to edit the products list? For example if I want to only have 3 products on a row instead the default 4... etc etc.http://i52.tinypic.com/34oc304.jpgI am using Opencart 1.4.9.4Thanks in advanceEDIT: made new topic in correct category: viewtopic.php?f=21&t=39099Please remove this topic
  • quick way to edit many products - so slow atm
    Questioni'm trying to update each product with new details but it's just so slow and tedious. feel there must be a quicker simpler way to do it but see any obvious other method to edit them. for instance say i want to edit the price of every product in a brand because of a promoition, it would be nice if i could select to see just those fields for
  • [RELEASED] Filter by Price Module
    QuestionCurrent Version: v153.1OpenCart Versions: 1.4.8 − 1.5.3.xDemo: View the customer side or the admin sideTo purchase: Visit Clear ThinkingThis module enables customers to filter the products within the current category, manufacturer, and/or search page by a selected price range. If the customer is not currently browsing one of those pages,
  • How to edit the way products list appear?
    QuestionHow to edit the products list? For example if I want to only have 3 products on a row instead the default 4... etc etc.http://i52.tinypic.com/34oc304.jpgI am using Opencart 1.4.9.4Thanks in advanceAnswersbelow this method for latest home using default theme1. Open file latest_home.tpl in
  • Help with customizing the Shopping Cart.tpl page
    QuestionHi guysThis is connected to my previous threads,I am currently getting this error:Code: Select allNotice: Undefined index: depositamnt in /home/kamjocoz/public_html/gct/testing/catalog/view/theme/default/template/checkout/cart.tpl on line 8 Notice: Undefined variable: depositamnt in
  • Install 1.5.1 to new server and move the old 1.4.5 stuff
    QuestionI have the site which is at 1.4.5 version, and I am changing the server, so I want to install the fresh new version 1.5.1 to the new server. Is there a way I can move the contents and product from the old server to the new server. what i need to know before i do it.I think I will lose the product options like it state in upgrade
  • SLIDER HELP
    QuestionHELLO I AM NEW IN OPENCART , I JUST ADD IMAGES IN SLIDER IN HOMEPAGE, BUT THE SLIDER IS NOT SHOWING IN MIDDLE NOW .SEE ATTACHMENTANYBODY HELP ME PLEASE
  • Categories Clone needed for 1.5.1
    QuestionI am looking to have a clone made for 1.5.1.It would have to be like Q's mod that he did for 1.4.x.I need to show 3 Categorie boxes that I can change the style for each one.Also I will need a way of setting what Categories goes into what box.I am looking for a fast turn around on this.The one who can get it done fast and at the right price
  • Problem Undefined Index issue with Carousel on v1.5.1.
    QuestionUndefined Index issue with CarouselWhenever I enable the stock carousel, I get an error code that reads as follows:Notice: Undefined index: layout_id in /home/content/34/8205034/html/construction/open-cart/catalog/controller/common/column_left.php on line 50Notice: Undefined index: layout_id in
  • Add pagination to categories page in admin to speed it up!
    QuestionThe product section in admin lists 20 products at a time, but the category section in admin lists all categories which takes forever to load or make changes to any category as I have a large store.How can I implement the pagination seen on the admin products page to the admin categories page to speed things up?AnswersAny ideas anyone?
  • ازالة رابط أتصــل بنــا
    Questionالسلام عليكم ورحمة الله وبركاتةشكرا جميع الاخوه القائمين علي هذا المنتدي الرائع المفيد الذي تعملت منه الكثير والكثيرلدي سؤال محيرني جدا جدامحتاج اشيل رابط أتصل بنا من المتجر - لانه يعرض
  • [How To] retrieve the name and not ID
    QuestionHi,I use v1.5.1.1I create a class "color"Code: Select allCREATE TABLE IF NOT EXISTS `color_class` (  `color_id` int(11) NOT NULL  AUTO_INCREMENT,  `language_id` int(11) NOT NULL,  `name` varchar(32) collate utf8_bin NOT NULL,  PRIMARY KEY  (`color_id`,`language_id`)) ENGINE=MyISAM  DEFAULT
  • How can I display all parent categories on homepage?
    QuestionHowdy,Sorry if this question has been asked before, but the search on this site doesn't work as well as I'd hoped. Either that or the thread simply doesn't exist.Anyhoo, I'm trying to find out how to display a list of parent categories (with links obviously) on header.tpl of my theme. Either by using PHP or an add-on. Any ideas?Thanks in
  • Need a AddON that allows me to select exact price and condit
    QuestionFor an addon that allows my buyers to select a product condition / attribute.For instance if I have a used camera for sale I want the buyers to have an option to select what condition the product is in within the same product is in. Like so they can select weather if its bad, good, acceptable etc. with price. With pricing depending on its