Try the Demo

Magento

eCommerce Software for Online Growth

Magento Forum

Our new hosted solution for small & emerging businesses
   
Order issues - Authorize.net - no confirmation page
 
Rick W
Jr. Member
 
Total Posts:  12
Joined:  2008-06-10
 

Not sure if this is a Magento or Authorize.net issue, but when I click “Place Order” on our store, I get a javascript alert saying that the transaction has been approved (see the attached screenshot).  The amount is billed and captured in Authorize.net, but the customer never gets to the confirmation page or an e-mail on the site, and the order does not show up in Magento’s admin area.

We’re running Magento 1.3.1 on a VPS.  Can someone help?

Image Attachments
Picture-1-copy.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
 
bryant@magnoliapost.com
Jr. Member
 
Total Posts:  5
Joined:  2008-11-06
 

I’m having same problem. Any thoughts?

 
Magento Community Magento Community
Magento Community
Magento Community
 
bryant@magnoliapost.com
Jr. Member
 
Total Posts:  5
Joined:  2008-11-06
 

It might be hacky, but it fixed the problem. I just commented out the alert on line 178 of Authoirizenet.php in

app/code/core/Mage/Paygate/Model/Authorizenet.php

 
Magento Community Magento Community
Magento Community
Magento Community
 
bryant@magnoliapost.com
Jr. Member
 
Total Posts:  5
Joined:  2008-11-06
 

I spoke a little too soon. If you comment out that line then if the customer does make a mistake, the cart doesn’t tell them anything about the mistake or that they were declined by authorize.net . It just records the sale anyway, but authorize.net doesn’t record the sale and doesn’t send any notifications.

My work around was to change the code that throws the exception to everything except the approval language. Here’s hack:

was:

if ($error !== false) {
Mage::throwException($error);
}

changed to:

if ($error !== “‘This transaction has been approved.’") {
Mage::throwException($error);
}

I think the real problem is in the case switching from line 126 through 135, but I don’t know what is going on with the “self::RESPONSE_CODE_APPROVED:”

Does anyone know how to echo those values so I can see what they are?

 
Magento Community Magento Community
Magento Community
Magento Community
 
expertsows
Jr. Member
 
Total Posts:  1
Joined:  2009-10-25
 
bryant@magnoliapost.com - 18 September 2009 10:44 PM

I spoke a little too soon. If you comment out that line then if the customer does make a mistake, the cart doesn’t tell them anything about the mistake or that they were declined by authorize.net . It just records the sale anyway, but authorize.net doesn’t record the sale and doesn’t send any notifications.

My work around was to change the code that throws the exception to everything except the approval language. Here’s hack:

was:


if ($error !== false) {
Mage::throwException($error);
}

changed to:


if ($error !== “‘This transaction has been approved.’") {
Mage::throwException($error);
}

I think the real problem is in the case switching from line 126 through 135, but I don’t know what is going on with the “self::RESPONSE_CODE_APPROVED:”

Does anyone know how to echo those values so I can see what they are?

Hi Bryan,

Di you find a solution for this problem? I am also facing this issue. The payment is processed but I dont get the order stored in the database. Please, let me know.
Thanks.
Leonardo.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
© Copyright 2012 Magento Inc.
Privacy Policy|Terms of Service
Magento Community Count
704132 users|1728 users currently online|497378 forum posts