4

I am using Magento ver. 2.1.2. Some of our customer complain that they can't checkout with Credit Card (Authorize.net). A sorry message "sorry but something went wrong" showing when checkout. We have checked the issue also found the problem using credit card (testing mode).

But when I check in admin, order was placed as Pending status.

enter image description here

I have contacted with the theme (Porto) support section, but they replied that "payment method integration is core functionality of Magento default, not theme related". So, they are are unable to help about this issue.

Can you please help me resolve the issue.

Regards,

1

This error generally comes when server connection timeout of api has been expired. For authorize.net it is 45 second. you can check it from here:

Magento\Authorizenet\Model\TransactionService CONNECTION_TIMEOUT

there are two option for solve this problem you can check by increase your timeout or check with your authorize.net team.

  • Hi @Yogesh Thanks for your response. I have increased the response time of vendor/magento/module-authorizenet/Model/TransactionService.php const CONNECTION_TIMEOUT = 60; but no luck. – Pk Ray Jun 16 '17 at 12:12
  • I have checked the error log that showing the below response in debug.log. no other error in system.log and exception.log. [2017-06-16 10:30:45] main.DEBUG: per product type 5.9500 simple {"is_exception":false}[] [2017-06-16 10:30:45] main.DEBUG: per product type 5.9500 simple {"is_exception":false} [] [2017-06-16 10:30:50] main.DEBUG: cache_invalidate: {"method":"POST","url":"https://fbms.com/authorizenet/directpost_payment/place/","invalidateInfo":{"tags":["catalog_product_1376","FPC"],"mode":"matchingTag"},"is_exception":false} [] – Pk Ray Jun 16 '17 at 12:19
  • And I also checked the server response using browser's inspector for the response of the transact.dll, given below. < HTML > < BODY > < TABLE > < TR >< TD >An error occurred while trying to report this transaction to the merchant. 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. < BR >< BR >This transaction has been approved.< BR > < P >It is advisable for you to contact the merchant to verify that you will receive the product or service.< BR ></ TD ></ TR > </ HTML > – Pk Ray Jun 16 '17 at 12:28
  • try with cache enable, it may be occurred due to long response time – Yogesh Karodiya Jun 16 '17 at 13:10
  • Hi @Yogesh, Thanks for your information. Finally the problem is fixed. – Pk Ray Jun 19 '17 at 11:44
1

I've also experienced the same issue in Magento ver 2.1.2 Opensource. It was due to payment transaction is to long and exceeded the timeout which is 30sec. In my case I've increased the timeout time to 60sec in

Magento\Payment\Model\IframeConfigProvider::TIMEOUT_TIME

0

Following solution worked for me. I have upgraded the module by php bin/magento setup:upgrade Also, make sure the api urls should be following

Gateway URL https://secure.authorize.net/gateway/transact.dll , Transaction Details URL https://api2.authorize.net/xml/v1/request.api

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.