Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

authorize.net orders approved but give error to customer
 
DDMAN
Sr. Member
 
Total Posts:  179
Joined:  2008-01-08
 

I’m running 1.1.3 and authorize.net is our only payment method.

It is not in test mode, it works most of the time. We are authorizing and capturing payment.

The url we are using to submit to is https://secure.authorize.net/gateway/transact.dll

We also have it set not to email customer, use credit card validation and set the order to processing.

So like I said most orders are going through, however, there are some customers where they enter their credit card information and magento submits it to authorize.net. Authorize.net approves it and sends data back to magento.

For some reason the order doesn’t complete and gets an error. (Currently I do not know what error my customers are getting but hope to talk to one soon) The customer then goes ahead and tries the order again and authorize.net approves it and sends the data back to magento as approved but the order doesn’t complete

Some customers have submitted their orders 5-6 times, each with a successful charge to authorize.net Most end up getting the charge to go through, a few do not and abandon the cart.

Currently I’m manually going into authorize.net and voiding these duplicate charges. However, I need to get this fixed.

Why are these approved orders from authorize.net not completing the order on the magento side? Most orders work? It would appear that something the customer is inputting is causing this error since some orders work and others don’t

Has anyone else experienced something like this?

Below is a row from the debug table from an order that was approved by authorize but did not complete successfully in magento.
request body

X_VERSION=3.1&X;_DELIM_DATA=True&X;_DELIM_CHAR=,&X;_RELAY_RESPONSE=False&X;_INVOICE_NUM=100000176&X;_TEST_REQUEST=FALSE&X;_LOGIN=XXXXXXXXXX2&X;_TRAN_KEY=XXXXXXXXXXXXXX&X;_TYPE=AUTH_CAPTURE&X;_METHOD=CC&X;_AMOUNT=92.22&X;_CURRENCY_CODE=USD&X;_FIRST_NAME=XXXXXX&X;_LAST_NAME=XXXXXXX&X;_COMPANY=&X;_ADDRESS=XXXXXXXXXXXXX&X;_CITY=XXXXXX&X;_STATE=Ohio&X;_ZIP=XXXXX&X;_COUNTRY=US&X;_PHONE=XXXXXXXXX&X;_FAX=&X;_CUST_ID=&X;_CUSTOMER_IP=XXXXXXXXXX&X;_CUSTOMER_TAX_ID=&X;_EMAIL=&X;_EMAIL_CUSTOMER=&X;_MERCHANT_EMAIL=XXXXXXXXXXXXX&X;_SHIP_TO_FIRST_NAME=XXXXX&X;_SHIP_TO_LAST_NAME=XXXXX&X;_SHIP_TO_COMPANY=&X;_SHIP_TO_ADDRESS=XXXXXXXXXXXX&X;_SHIP_TO_CITY=XXXXXXXXXXX&X;_SHIP_TO_STATE=Ohio&X;_SHIP_TO_ZIP=XXXXX&X;_SHIP_TO_COUNTRY=US&X;_PO_NUM=&X;_TAX=0.0000&X;_FREIGHT=5.9800&X;_CARD_NUM=XXXXXXXXXXXX&X;_EXP_DATE=12-2010&X;_CARD_CODE=XXX
response body
1,1,1,This transaction has been approved.,XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX,M,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

So you can see that the invoice number and order number 100000176 was approved but that order does not exist in magento.

Thanks for your thoughts

 
Magento Community Magento Community
Magento Community
Magento Community
 
DDMAN
Sr. Member
 
Total Posts:  179
Joined:  2008-01-08
 

I think I tracked down the issue. We imported customers over from os commerce and some of the customer data was duplicated.

We get payment transaction emails from the magento system when orders don’t process and here was what one email said

“Payment transaction failed.

Reason
Notice: Undefined index: url in /app/code/core/Mage/Core/Model/Email/Template/Filter.php on line 140

Basically because we had a duplicate email in the database this page was throwing an error.

If this ends up not being the solution I’ll let you know

 
Magento Community Magento Community
Magento Community
Magento Community
 
DDMAN
Sr. Member
 
Total Posts:  179
Joined:  2008-01-08
 

I’ve determined that this is not caused by our data. It appears to be either a bug in Magento or an issue with the code in the system

It has something to do with the fact that when a customer creates a new account and then proceeds to checkout by the time they get to checkout they are nolonger in the same session or something and it throws the error because the customer account is created but their order is not associated with it so it sees it as a duplicate email.

There is a bug also that magento when it has this error allows the order to be charged to authorize.net even though the order doesn’t process.

I also have found this error in the admin order area but in the admin order area when the order fails because of this error it doesn’t post the charge to authorize.net

Any one else have this problem with Authorize.net and Magento?

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
DDMAN
Sr. Member
 
Total Posts:  179
Joined:  2008-01-08
 

ok so here was the solution to this error with authorize.net

Turns out that when my content team edited the New Account Email in system > transactional emails they tweaked some of the code in the New Account Email so it looked like this

<a href="{{store%20url="> which I replaced with <a href="{{store url=""}}">
and this <img src="{{skin%20url=" _area="frontend" alt="Magento" style="margin-bottom: 10px;” border="0" /> which I replaced with this
<img src="{{skin url="images/logo_email.gif" _area=’frontend’}}” alt="Magento" style="margin-bottom:10px;" border="0"/>

Simple couple characters of code.

I give props to Varien paid support who actually were able to troubleshoot this issue and resolve it in under 4 hours! Well worth having paid support

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top