Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Problems with Link Point

Problems with Link Point

Locked

Views: 3,870

Results 1 to 20 of 21
This thread is locked. New replies are disabled.
28 Sep 2007, 6:36 PM
#1
iheartguts avatar

iheartguts

New Zenner

Join Date:
Aug 2007
Posts:
32
Plugin Contributions:
0

Problems with Link Point

Hiya,

Can any Zen geniuses help out a ZC newbie? I've been trying to get my Linkpoint module working on my Zen Cart site, but seem to be stuck with the following error after trying to confirm a test order:

"we are presently unable to contact the Credit Card company for authorization"

I followed the instructions for setup (got the SSL, PEM is installed, port is open):

* LinkPoint or YourPay Account (naturally)
* cURL is required and MUST be compiled into PHP with SSL support
* Port 1129 is used for bidirectional communication with the gateway, so must be open on your host's router
* PEM RSA Key File (Provided by LinkPoint)
* You need to have an SSL certificate active on your site to protect your customers' sensitive data

So I imagine I'm stuck somewhere on curl, but I am not much of a coder so I don't know what I'm looking out for when trying to fix.

Many thanks in advance for your big brains. Mine feels very small right now.

Thx

28 Sep 2007, 6:39 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Problems with Link Point

I replied to your other post with the following questions. Perhaps you can answer them here:

iheartguts:

Having the same problem, also with Link Point.1. Just to clarify, by "having the same problem", do you mean that your checkout "hangs" after clicking Confirm? Or something else?

  1. Who's your hosting company?

  2. What version of Zen Cart?

  3. What addons/contributions have you installed?

  4. Are you using the built-in Linkpoint API module, or the older one from the downloads area?

You might try reading this FAQ:
https://www.zen-cart.com/tutorials/index.php?article=298

28 Sep 2007, 6:43 PM
#3
drbyte avatar

drbyte

Sensei

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

Re: Problems with Link Point

Also, grab the curltest tool from this thread:
http://www.zen-cart.com/forum/showthread.php?p=408522#post408522

Upload the unzipped php file to your server, and post a link to it.
Also, try running it with your browser. What happens?
Then add ?linkpoint=1 to the URL ... now what happens?

28 Sep 2007, 9:41 PM
#4
iheartguts avatar

iheartguts

New Zenner

Join Date:
Aug 2007
Posts:
32
Plugin Contributions:
0

Re: Problems with Link Point

Hi Dr. Byte,

Sorry for posting twice, I thought maybe the other thread was too old.

  1. Just to clarify, by "having the same problem", do you mean that your checkout "hangs" after clicking Confirm? Or something else?
    It processes, then gives the following error: we are presently unable to contact the Credit Card company for authorization
  1. Who's your hosting company?
    Open Source Host
  1. What version of Zen Cart?
    Zen Cart 1.3.7
    Database Patch Level: 1.3.7

  2. What addons/contributions have you installed?
    Nothing special that I know of, but I ahve made several modifications to templates and such

  3. Are you using the built-in Linkpoint API module, or the older one from the downloads area?
    built-in version

thanks for the curl test, here's what I got:

Array
(
[url] => "http://www.zen-cart.com/testcurl.php"
[content_type] => text/html
[http_code] => 200
[header_size] => 125
[request_size] => 174
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.00672
[namelookup_time] => 0.00249
[connect_time] => 0.003267
[pretransfer_time] => 0.00333
[size_upload] => 0
[size_download] => 2142
[speed_download] => 318750
[speed_upload] => 0
[download_content_length] => 0
[upload_content_length] => 0
[starttransfer_time] => 0.006694
[redirect_time] => 0

CURL Test Page
This page is intended for testing CURL behaviour. You should be accessing this page via CURLTEST.PHP running on YOUR server.

You submitted the following fields and data:

Array
(
[field1] => This is a test
[statuskey] => ready
)

Data validation
Good
Other Info
Your server IP address is: 75.126.147.171.
user-agent: unknown.

thanks for your help!
w

28 Sep 2007, 11:11 PM
#5
iheartguts avatar

iheartguts

New Zenner

Join Date:
Aug 2007
Posts:
32
Plugin Contributions:
0

Re: Problems with Link Point

the above is what it looks like with the ?linkpoint=1

this is what it looks like with just the curltest:

CURL Test Page
This page is intended for testing CURL behaviour. You should be accessing this page via CURLTEST.PHP running on YOUR server.

You submitted the following fields and data:

Array
(
[field1] => This is a test
[statuskey] => ready
)

Data validation
Good
Other Info
Your server IP address is: 75.126.147.171.
user-agent: unknown.
Copyright © 2003 - 2007 Zen Ventures, LLC - Powered by Zen Cart™

Array
(
[url] => "http://www.zen-cart.com/testcurl.php"
[content_type] => text/html
[http_code] => 200
[header_size] => 125
[request_size] => 174
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.009533
[namelookup_time] => 0.004554
[connect_time] => 0.005335
[pretransfer_time] => 0.005393
[size_upload] => 0
[size_download] => 2142
[speed_download] => 224693
[speed_upload] => 0
[download_content_length] => 0
[upload_content_length] => 0
[starttransfer_time] => 0.009507
[redirect_time] => 0

thank you

29 Sep 2007, 12:12 AM
#6
drbyte avatar

drbyte

Sensei

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

Re: Problems with Link Point

What's the URL to your curltest.php ?

Or at least try adding this as an alternate parameter:
?url=https://secure.linkpt.net:1129/LSGSXML

30 Sep 2007, 6:19 AM
#8
drbyte avatar

drbyte

Sensei

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

Re: Problems with Link Point

Okay - your CURL communications appears to be fine as far as Linkpoint connectivity is concerned.

Let's turn on debug logging to find out what results are coming back from linkpoint:
Go to the Zen Cart Admin edit screen for your Linkpoint module -- click Edit.
Now add &debug=on to the end of the URL in the browser, and press Enter.
Scroll down to the bottom of the list and choose a logging option. Email is easiest in this case, as long as you can access the Store send-from email account as indicated in the Admin->Config->Options screen.

Now try a transaction and post the log details.

1 Oct 2007, 3:20 PM
#9
iheartguts avatar

iheartguts

New Zenner

Join Date:
Aug 2007
Posts:
32
Plugin Contributions:
0

Re: Problems with Link Point

Thank you so much for all your help. Here's the log details, with address, etc. removed, of course. Looks like a connection problem, or problem with headers?

USUNSPECIFIED71.106.168.6ECI267662817886/home/iheartgu/public_html/shop/includes/modules/payment/linkpoint_api/267662817886.pemsecure.linkpt.net11297.24 server responds: unable to use client certificate (no key found or wrong pass phrase?) ErrNo:58 server responds: FAILURECould not connect.
Warning: Cannot modify header information - headers already sent by (output started at /home/iheartgu/public_html/shop/includes/modules/payment/linkpoint_api/class.linkpoint_api.php:178) in /home/iheartgu/public_html/shop/includes/functions/functions_general.php on line 44

thanks again, you absolutely rule.

1 Oct 2007, 9:17 PM
#10
drbyte avatar

drbyte

Sensei

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

Re: Problems with Link Point

iheartguts:

unable to use client certificate (no key found or wrong pass phrase?) ErrNo:581. What was the filename of the .pem file you downloaded?

  1. What is the store-number value you entered in the ZC admin module settings?
    They need to match.
1 Oct 2007, 9:38 PM
#11
iheartguts avatar

iheartguts

New Zenner

Join Date:
Aug 2007
Posts:
32
Plugin Contributions:
0

Re: Problems with Link Point

ah yes, the merchant ID and PEM did not match before and now they do, thank you. i ran a test and get the following error:

USUNSPECIFIED71.106.168.6ECI1125362/home/iheartgu/public_html/shop/includes/modules/payment/linkpoint_api/1125362.pemsecure.linkpt.net11297.24 server responds: ErrNo:0 server responds: This is a test transaction and will not show up in the ReportsMon Oct 1 15:35:59 2007APPROVED
Warning: Cannot modify header information - headers already sent by (output started at /home/iheartgu/public_html/shop/includes/modules/payment/linkpoint_api/class.linkpoint_api.php:178) in /home/iheartgu/public_html/shop/includes/functions/functions_general.php on line 44

should i try running a real test while not in testing mode?

thanks again!

1 Oct 2007, 9:43 PM
#12
iheartguts avatar

iheartguts

New Zenner

Join Date:
Aug 2007
Posts:
32
Plugin Contributions:
0

Re: Problems with Link Point

i also got an email confirmation for the order, btw. but when i confirm the order, i get that string of code rather than a confirmation of order. thanks again so much!

1 Oct 2007, 9:44 PM
#13
drbyte avatar

drbyte

Sensei

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

Re: Problems with Link Point

That's all good.

Turn off the logging now, so the warnings disappear.

As for doing tests, you should always test real live transactions before opening your store to the public.

1 Oct 2007, 9:56 PM
#14
iheartguts avatar

iheartguts

New Zenner

Join Date:
Aug 2007
Posts:
32
Plugin Contributions:
0

Re: Problems with Link Point

By golly, it works! You are a miracle worker, thank you so much. Can I donate to the Zen Cart fund in your honor?

Yes, the site is password protected so no one can place orders until we've fully tested the shopping cart.

YAY!

1 Oct 2007, 10:03 PM
#15
drbyte avatar

drbyte

Sensei

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

Re: Problems with Link Point

iheartguts:

By golly, it works! You are a miracle worker, thank you so much. Can I donate to the Zen Cart fund in your honor?Absolutely.

Glad it's working!

3 Oct 2007, 2:59 PM
#16
projectet avatar

projectet

New Zenner

Join Date:
Jul 2006
Posts:
24
Plugin Contributions:
0

Re: Problems with Link Point

iheartguts:

i also got an email confirmation for the order, btw. but when i confirm the order, i get that string of code rather than a confirmation of order. thanks again so much!

I all of a sudden have the same problem on our site.. Dr. Byte what/where is this option to turn off logging? The orders kick back that same PHP header error as noted above but the order still is successfully charged and noted to the customer via email as well as into zen cart. It just gives a bad impression for someone to see a bunch of php error code when they hit confirm on their order!!

3 Oct 2007, 3:13 PM
#17
projectet avatar

projectet

New Zenner

Join Date:
Jul 2006
Posts:
24
Plugin Contributions:
0

Re: Problems with Link Point

also just to note, in my header error my PEM # and my Merchant ID are correctly the same and always have been.

3 Oct 2007, 4:16 PM
#18
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Problems with Link Point

why in the world would a cart start printing out that debug info after upgrading the cart? I followed your directions and turned it on and off and still the cart is showing the debug printout - it does finalize the sale and linkpoint accepts the charge but checkout-success will not show up.

3 Oct 2007, 4:37 PM
#19
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Problems with Link Point

the printout says debugging = true debug = true

I checked the database and it says false. what gives?

3 Oct 2007, 8:36 PM
#20
drbyte avatar

drbyte

Sensei

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

Re: Problems with Link Point

delia:

why in the world would a cart start printing out that debug info after upgrading the cart? I followed your directions and turned it on and off and still the cart is showing the debug printout - it does finalize the sale and linkpoint accepts the charge but checkout-success will not show up.
Did you remove and then re-install the module via the Admin interface? There are some changes in the way those settings are handled, and it's necessary to refresh them by removing and reinstalling.