Integration and Testing

Authorize.Net API questions and help with your payment integration.

Reply
Member
Posts: 3
Registered: ‎08-05-2013
Accepted Solution

Payment processing problem

Good Day.

 

I am using Authorize.Net payment gateway and I have a problem related to it. There is an exception while processing online payments with the next message:

« The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. »

 

This exception occurs only on our production server. There is no any exception using local developers machines with the same configuration of IIS and Authorize.Net, there is a successful response from Authorize.Net server with processed transaction details.

 

Production server configurations:

1. IIS 6.0

2. ASP.NET 4.0

3. ASP.NET MVC 3

4. AuthorizeNetTestMode = true (Sandbox on)

 

Can you provide a solution for this problem ?

Thanks, Roman


Accepted Solutions
Solution
Accepted by topic author romapavelko
‎08-21-2015 01:58 AM
Member
Posts: 3
Registered: ‎08-05-2013

Re: Payment processing problem

[ Edited ]

I found a solution, when production server works good. It is ignoring the certificate validation.

ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };

 

But I think, it is not the best idea. There should be more accurate solution...

View solution in original post


All Replies
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Payment processing problem

login to the server, open a web browser. browse to the authorize.net https url you are trying to get on, and see what error you are getting.

Member
Posts: 3
Registered: ‎08-05-2013

Re: Payment processing problem

[ Edited ]

i can't login directly to the server. i have only ftp access to it. can i perform it in another way?

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Payment processing problem

That not a authorize.net error, is it a .net error. 

 

If you don't have access to the server, you probably need to do

http://www.bing.com/search?q=The+underlying+connection+was+closed

Solution
Accepted by topic author romapavelko
‎08-21-2015 01:58 AM
Member
Posts: 3
Registered: ‎08-05-2013

Re: Payment processing problem

[ Edited ]

I found a solution, when production server works good. It is ignoring the certificate validation.

ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };

 

But I think, it is not the best idea. There should be more accurate solution...

Highlighted
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Payment processing problem

sound like the server need to accept the SSL certificate from authorize.net