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 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 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:

I'm assuming you've also done something to the following:

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 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.