Authorize.net error Payment gateway connection failed

Eric Erskine asked on March 6, 2018 00:20

My site uses Kentico v9

I have a site that uses Authorize.net. It has been working successfully for over a year. No changes were made to the site but last week the checkout stopped working and it now gives the following error: Unable to finish payment: Payment gateway connection failed.

I verified the server has .NET 4.6 and only TLS 1.2 is enabled. I know Authorize.net dropped support for early versions of TLS last week but can't figure out what else could be wrong. Any suggestions?

Correct Answer

Eric Erskine answered on March 7, 2018 15:43

This site is using a custom payment gateway. Turns out it needed an extra line of code before making a connection to Authorize.Net.

System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

0 votesVote for this answer Unmark Correct answer

Recent Answers


Matt Nield answered on March 6, 2018 00:38 (last edited on March 6, 2018 00:39)

Sometimes there can be an issue with your hot environment itself. Depnding on your hosting environment, you may want to take a look at this article: https://support.quovadisglobal.com/kb/a433/how-to-enable-tls-1_2-on-windows-server-2008-r2.aspx

I'm assuming you've also done something to the following: https://devnet.kentico.com/articles/tls-1-2-support

1 votesVote for this answer Mark as a Correct answer

Eric Erskine answered on March 6, 2018 18:48

I have verified that the server ONLY uses TLS 1.2 as an allowed protocol. 1.0 and 1.1 have been disabled. We are also using .NET framework 4.6 and Kentico version 9. See output from IIS Crypto, which matches settings in RegEdit.

Image Text

I can also browse on that machine to https://tlstest.paypal.com/ and I get the "PayPal_Connection_OK" message.

All pieces should be in place. Not sure what else could be missing.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.