Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    May 2010
    Posts
    74
    Plugin Contributions
    0

    Default FirstData SGS-020006

    Zen Cart 1.3.8a, hosted by Ipower: linux PHP 5.2.17

    Gateway is First Data / Linkpoint.

    Store has been working great for 6 months. No changes or updates made, except adding some products to the store in early January.

    Last good transaction was 1/22/11; since 2/4/11 we get the same payment error on every transaction.

    Customer sees credit card declined. Linkpoint CC review shows SGS - 020006.

    First Data gave us a new pem and checked it. They say it is working.

    Here is linkpoint debug file from our public_html/cache:

    Feb-08-2011 02:22:03
    =================================

    Response Code:

    Sending to Gateway:
    result = LIVE
    oid = 1356-WUqTxd
    ip = 173.64.222.30
    ponumber =
    subtotal = 1
    tax = 0.08
    shipping = 0.00
    chargetotal = 1.08
    cardnumber = ******
    cardexpmonth = 04
    cardexpyear = 11
    cvmindicator = provided
    cvmvalue = ******
    userid = 1
    customerid = 1
    name = My Name
    company =
    address1 = 4111 Your St.
    address2 =
    city = Your City
    state = Texas
    country = US
    phone = 972-111-2222
    email = [email protected]
    addrnum = 4111 Your St.
    zip = 75000
    sname = My Name
    saddress1 = 4111 Your St.
    saddress2 =
    scity = Your City
    sstate = Texas
    szip = 75000
    scountry = US
    comments = Website Order
    items = Array
    (
    [1] => Array
    (
    [id] => 52:9abf9dc1d41ae94abcb780afcac8ebdc
    [description] => Buttery
    [quantity] => 1
    [price] => 1.00
    [options0] => Array
    (
    [name] => Size
    [value] => Mini
    )

    )

    )

    ordertype = SALE
    host = secure.linkpt.net
    port = 1129
    keyfile = /our/root/path/name/public_html/includes/modules/payment/linkpoint_api/xxxxxxxxx.pem
    configfile = xxxxxxxxx
    transactionorigin = ECI
    terminaltype = UNSPECIFIED


    Result:
    (
    [r_csp] =>
    [r_time] =>
    [r_ref] =>
    [r_error] => SGS-020006: Please contact merchant services.
    [r_ordernum] =>
    [r_message] =>
    [r_code] =>
    [r_tdate] =>
    [r_score] =>
    [r_authresponse] =>
    [r_approved] =>
    [r_avs] =>
    )

    ##############################

    After reading a related thread here by Dr. Byte, we have run this:
    http://ourwebsite.com/extras/curltest.php?linkpoint=1, and have this output:

    Array
    (
    [url] => "https://secure.linkpt.net:1129/LSGSXML"
    [content_type] =>
    [http_code] => 200
    [header_size] => 40
    [request_size] => 175
    [filetime] => -1
    [ssl_verify_result] => 0
    [redirect_count] => 0
    [total_time] => 0.786676
    [namelookup_time] => 0.050543
    [connect_time] => 0.152435
    [pretransfer_time] => 0.678138
    [size_upload] => 37
    [size_download] => 280
    [speed_download] => 355
    [speed_upload] => 47
    [download_content_length] => 280
    [upload_content_length] => 0
    [starttransfer_time] => 0.786609
    [redirect_time] => 0
    )

    Malformed or unrecognized request. EOF

    ##############################___

    We believe this shifts issue toward the hosting provider, so we have asked them about port 1129 and CURL issues.

    Can the experts here please advise other tests we can do, or other questions we can ask of gateway or hosting provider to help pinpoint the cause of this error?

  2. #2
    Join Date
    May 2010
    Posts
    74
    Plugin Contributions
    0

    Default Re: FirstData SGS-020006

    Additional Information:

    cURL support enabled
    cURL Information libcurl/7.18.2 GnuTLS/2.4.2 zlib/1.2.3.3 libidn/1.15

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: FirstData SGS-020006

    Quote Originally Posted by srlaird View Post
    First Data gave us a new pem and checked it. They say it is working.
    Well, if you're still getting that error code, then ... they're wrong. Especially given the following:
    Quote Originally Posted by srlaird View Post
    Result:
    (
    [r_csp] =>
    [r_time] =>
    [r_ref] =>
    [r_error] => SGS-020006: Please contact merchant services.
    The error is clear: Contact merchant services ... ie: your FirstData account representative. That's *all* the error message tells you. It'll be up to *them* to fix whatever is wrong with your account.

    Quote Originally Posted by srlaird View Post
    After reading a related thread here by Dr. Byte, we have run this:
    http://ourwebsite.com/extras/curltest.php?linkpoint=1, and have this output:

    Array
    (
    [url] => "https://secure.linkpt.net:1129/LSGSXML"
    [content_type] =>
    [http_code] => 200
    http_code 200 tells you the connection was good.
    No need to blame the hosting provider or port 1129 or CURL at this point.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    May 2010
    Posts
    74
    Plugin Contributions
    0

    Default Re: FirstData SGS-020006

    http_code 200 tells you the connection was good.
    No need to blame the hosting provider or port 1129 or CURL at this point.
    Can you clarify what this test is testing? We ran it from the browser URL. Does that tell us that we are able to connect from the hosting server to the payment gateway server?

    First Data has sent us some scripts to run. We will try that right now.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: FirstData SGS-020006

    It just sends a blank anonymous transaction request. It's only looking for a response from the gateway to confirm that the communications channel is open, which the 200 response confirms.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    May 2010
    Posts
    74
    Plugin Contributions
    0

    Default Re: FirstData SGS-020006

    After much testing, the hosting provider says, "Yes, we have upgraded the PHP version to 5.2.17 on our platform. It appears that the curl call to merchant services is causing the issue. Please include the curl script:

    curl_setopt($ch, CURLOPT_SSLVERSION, 3);

    in the merchant services script and check the functionality of the shopping cart.

    Zen Wizards: Can you please tell us where to put this for the linkpoint_api?

  7. #7
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: FirstData SGS-020006

    Yet another reason to be using the latest version of Zen Cart.
    The v1.3.9 version of class.linkpoint_api.php (the file that does the CURL call for linkpoint/firstdata) already has that.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    May 2010
    Posts
    74
    Plugin Contributions
    0

    Default Re: FirstData SGS-020006

    Yes, we talked about upgrading today, but after being down for 6 days, all the client wants is to get the store up and running.

    Would this be the best way to add it? It does not stop the error, unfortunately.

    ####################____around line #298 for us

    else // using BUILT-IN PHP curl methods
    {
    $ch = curl_init ();
    // ok try this
    curl_setopt($ch, CURLOPT_SSLVERSION, 3);

    curl_setopt ($ch, CURLOPT_URL,$host);
    curl_setopt ($ch, CURLOPT_POST, 1);
    curl_setopt ($ch, CURLOPT_POSTFIELDS, $xml);
    curl_setopt ($ch, CURLOPT_SSLCERT, $key);
    curl_setopt ($ch, CURLOPT_CAINFO, $key);
    curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, false);
    curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt ($ch, CURLOPT_SSLVERSION, 3);
    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);

  9. #9
    Join Date
    May 2010
    Posts
    74
    Plugin Contributions
    0

    Default Re: FirstData SGS-020006

    Guess it's already in 1.38a too. That's what we are running.

  10. #10
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: FirstData SGS-020006

    Perhaps your hosting provider still needs to lend some attention to the problem?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 SGS-020003 Invalid XML error in FirstData / Linkpoint module since upgrade to 1.51
    By d9000 in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 7 Jan 2014, 02:13 AM
  2. LinkPoint and Error SGS-005000
    By Rasyr in forum Built-in Shipping and Payment Modules
    Replies: 35
    Last Post: 12 Jan 2013, 12:07 AM
  3. FirstData SGS-020006: Please contact merchant services.
    By baconflavoredice in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 11 Feb 2011, 03:24 AM
  4. [Done v1.3.9h] SGS-002301 Linkpoint error in 1.3.9g
    By Jeff_Mash in forum Bug Reports
    Replies: 9
    Last Post: 24 Oct 2010, 11:39 PM
  5. Linkpoint Error -- SGS-020003: Invalid XML
    By Rasyr in forum Built-in Shipping and Payment Modules
    Replies: 23
    Last Post: 31 Aug 2010, 12:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR