Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / FirstData Failure - 7 - couldn't connect to host

FirstData Failure - 7 - couldn't connect to host

Views: 7,571

Results 1 to 11 of 11
4 Mar 2011, 11:04 PM
#1
bobdog avatar

bobdog

Totally Zenned

Join Date:
Mar 2006
Location:
Fresno, California
Posts:
590
Plugin Contributions:
0

FirstData Failure - 7 - couldn't connect to host

Using 1.3.9.h

I just installed First Data payment module, in testing mode. I get a failed message. I called First Data, they claim that they changed their SSL and I need to update my shopping cart payment module.

Anybody else having this problem?

4 Mar 2011, 11:28 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: FirstData Failure - 7 - couldn't connect to host

Turn on the debug logging in the module's admin settings, and post the log details after testing another transaction.

There should be no need to rewrite SSL logic.

5 Mar 2011, 8:57 PM
#3
bobdog avatar

bobdog

Totally Zenned

Join Date:
Mar 2006
Location:
Fresno, California
Posts:
590
Plugin Contributions:
0

Re: FirstData Failure - 7 - couldn't connect to host

Thanks for taking the time to reply.

The error message in the cart is this:

We apologize for the inconvenience, but we are presently unable to contact the Credit Card company for authorization. Please contact the Store Owner for payment alternatives.

The debug log is this:

Mar-05-2011 01:47:42

Communication Result: 7 - couldn't connect to host

Response Code: < <

=================================

Sending to Gateway:
*** REMOVED BY MODERATOR ***

Result: proved>FAILURE</r_approved><r_error>Could not connect.</r_error>

Communication Result: 7 - couldn't connect to host
CURL info: Array
(
[url] => https://secure.linkpt.net:1129/LSGSXML
[content_type] =>
[http_code] => 0
[header_size] => 0
[request_size] => 0
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 21.111751
[namelookup_time] => 0.110947
[connect_time] => 0
[pretransfer_time] => 0
[size_upload] => 0
[size_download] => 0
[speed_download] => 0
[speed_upload] => 0
[download_content_length] => -1
[upload_content_length] => -1
[starttransfer_time] => 0
[redirect_time] => 0
)

6 Mar 2011, 7:02 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: FirstData Failure - 7 - couldn't connect to host

bobdog:

7 - couldn't connect to host
That means that when CURL asked your server to try to connect to the destination server it was unable to do so.
Most likely the port is blocked in your hosting company's firewall.
FirstData/Linkpoint configuration requirements+instructions: https://www.zen-cart.com/tutorials/index.php?article=298

6 Mar 2011, 7:39 PM
#5
bobdog avatar

bobdog

Totally Zenned

Join Date:
Mar 2006
Location:
Fresno, California
Posts:
590
Plugin Contributions:
0

Re: FirstData Failure - 7 - couldn't connect to host

And Dr. Byte saves the world again! Yes that was it.

Thank you Dr. Byte, and thanks to the zen cart team.

18 May 2011, 9:24 PM
#6
inovermyhead avatar

inovermyhead

Zen Follower

Join Date:
Feb 2007
Posts:
154
Plugin Contributions:
0

Re: FirstData Failure - 7 - couldn't connect to host

Add my thanks to that as well, had the same problem on a new shop on a new host. Had them open up port 1129, TCP and bidirectional, and no more problem.:clap:

17 Jun 2011, 5:20 PM
#7
dreday42 avatar

dreday42

New Zenner

Join Date:
Mar 2011
Posts:
10
Plugin Contributions:
0

Re: FirstData Failure - 7 - couldn't connect to host

thanks for the tips. I was having the same issues with my host. on shared servers they do not open up tcp port 1129, wish i knew that earlier... :oops:

27 Dec 2011, 4:31 PM
#8
lmax401 avatar

lmax401

New Zenner

Join Date:
Jan 2007
Location:
Louisburg, Kansas
Posts:
27
Plugin Contributions:
0

Re: FirstData Failure - 7 - couldn't connect to host

After upgrading my Bluehost account to a 64 bit server, link point can no longer connect (connection 7) with First Data. First Data stated the API will not work on a 64 bit system and recommended switching to "Web Service API". Since we can no longer keep CC information so as to process manually, my site is dead in the water. Any suggestions, will Web Service API work? Please help!

27 Dec 2011, 4:59 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: FirstData Failure - 7 - couldn't connect to host

Um ... The Zen Cart firstdata implementation has nothing to do with being 64 bit or not. It simply makes a connection from your server to the destination server, in a way that is agnostic to being 32-bit or 64-bit or whatever-bit.
If you're getting "7 - couldn't connect to host" errors, that means exactly what it said: cannot connect to host. ie: your hosting server is unable to make a connection to the firstdata server ... and that's almost always because the server's firewall is blocking things.
See my post #4 above.

Go back to the setup instructions and give them to your hosting company to get the port opened properly: https://www.zen-cart.com/tutorials/index.php?article=298

17 Feb 2014, 8:09 PM
#10
lynda1952 avatar

lynda1952

New Zenner

Join Date:
Feb 2014
Location:
Santa Cruz, CA
Posts:
8
Plugin Contributions:
0

Re: FirstData Failure - 7 - couldn't connect to host

<p> > **dreday42:** > > thanks for the tips. I was having the same issues with my host. on shared servers they do not open up tcp port 1129, wish i knew that earlier... :oops:</p> <p>  </p> <p> :frusty:</p> <p>  </p> <p> Hi - I'm having the very same issue. Our host doesn't open tcp port 1129 on their shared hosting sites because of the security issues with opening additional ports. I'm hoping that there is a way to reconfigure Zen cart to use port 443 or 80, which they recommended. Since many small businesses can't afford Virtual Private Servers or Managed Hosting, I was hoping Zen Cart was able to take the security on shared hosting into account and offer alternative ports.</p> <p>  </p> <p> We used a different paid cart before and there were no port issues. I've used Zen Cart in the past (long past, 2008!) when I freelanced for a discount web company as a designer, and the hosting solution we put the carts on was shared hosting, but I don't know about the ports as the company set them up, we just customized the interface. This is my first time installing the SSL and setting up the Gateway API (we're using FirsrData Global), and I want to get it right on the first go! Thanks so much for your support.</p> <p>  </p> <p> The site is at <http://shop.bunkerhilldvd.com> (the SSL cert is still pending, so no https:// yet). :clap:</p> <p>  </p> <p> <i>"If you cannot get rid of the family skeleton, you might as well make it dance" - George Bernard Shaw</i></p> <p> Lynda Williams</p> <p> www.LJWDesign.com</p> <p> [email protected]</p>
17 Feb 2014, 8:27 PM
#11
lynda1952 avatar

lynda1952

New Zenner

Join Date:
Feb 2014
Location:
Santa Cruz, CA
Posts:
8
Plugin Contributions:
0

Re: FirstData Failure - 7 - couldn't connect to host

<p> Why is my post showing as HTML code?????<br /> <br /> Lynda Williams<br /> <i>If you cannot get rid of the family skeleton, you might as well make it dance - George Bernard Shaw</i><br /> Lynda Williams<br /> Lynda J. Williams Design<br /> www.LJWDesign.com<br /> [email protected]</p>