Magento – Magento authorize.net direct post checkout does nothing

authorize.net

I've setup authorize.net direct post in our Magento website. At then end of checkout when I hit "place order" nothing happens and the text "Submitting order information…" just sits there. I haven't been able to find any solution to this (while the problem seems common).

I tried magento's default theme, blank theme, I tried disabling (in the xml config) all non-magento modules. There are no console errors. I have no clue how to debug this.

Anybody out there seen this problem?

Best Answer

I just ran into the same issue with Magento 1.8.0.0

There has been a change in the file

/app/design/frontend/base/default/template/checkout/onepage/review/info.phtml

(lines 79 - 83):

<script type="text/javascript">
//<![CDATA[
    review = new Review('<?php echo $this->getUrl('checkout/onepage/saveOrder', array('form_key' => Mage::getSingleton('core/session')->getFormKey())) ?>', '<?php echo $this->getUrl('checkout/onepage/success') ?>', $('checkout-agreements'));
//]]>
</script>

This is where the form_key hidden field/parameter gets added to the form. In my case I had this file customized and didn't update my copy in

/app/design/frontend/MYTEMPLATEPATH/default/template/checkout/onepage/review/info.phtml

(your 'MYTEMPLATEPATH' may vary)

Once I replaced those lines with the new code from Magento 1.8 everything worked like a charm.

Related Topic