Magento – Magento 2 – Failed Authorize.net Transactions Are Not Being Canceled and Not Getting a Response from Auth.net

authorize.netmagento2magento2.2

I have a pair of sites I manage that are on Magento 2.2.4 and 2.2.5. Both are using Authorize.net Direct Post and I have applied the Authorize.net MD5 patch from Magento to utilize the signature key instead of MD5. Both sites are able to properly process valid cards but failed transactions do not get canceled as expected. This was hit and miss prior to the patch so that might not be related.

I have both sites properly calling the Magento cron on a schedule for every two minutes. Even after the cron has run, the order is not canceled and remains in pending. I have set Direct Post to Authorize & Capture, but that did not have any impact.

The reporting of this transaction to the Merchant has timed out. An e-mail has been sent to the merchant informing them of the error. The following is the result of the attempt to charge your credit card. 

This transaction has been declined.

This is what I get as a response from transact.dll. I have Debug enabled for Direct Post so I get logs and I am not receiving a response from Authorize.net. I'm gathering that will be my issue but what would prevent Magento from seeing the response?

Best Answer

UPDATED

This is a Know Magento issue.

There is a fix already that will be realeased on Magento 2.3.2

You can extend the current file and apply the path by your self.

Please check the following issue with the commit that have the fix on it:

I suggest to extend the current file into app/code until the new version comes out.

Related Topic