Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20
  1. #11
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Elavon - Converge CURL error 56 - TCP connection reset by peer

    Quote Originally Posted by jeking View Post
    The response back is somewhat lacking.

    Response Code: .
    Response Text:

    Results Received back from Elavon Converge: Array
    (
    [] =>
    )
    Ya, when the connection fails or no response is received, the above is all you'll get.

    Under normal circumstances, if communications is working fine, then you'll get a meaningful response (success/error, with details about why).
    .

    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.

  2. #12
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,556
    Plugin Contributions
    28

    Default Re: Elavon - Converge CURL error 56 - TCP connection reset by peer

    I'm still struggling with this one. Spoke to Evalon support who suggested two other urls but both result in the same error.

    It *seems* to be an issue on their end:
    http://stackoverflow.com/questions/1...t-by-peer-mean

    Is anyone using the payment module successfully?

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

    Default Re: Elavon - Converge CURL error 56 - TCP connection reset by peer

    Around line 115 of curltester.php you could add these:
    Code:
    echo 'Connecting to Elavon Server...<br>';
    doCurlTest('https://www.myvirtualmerchant.com/VirtualMerchant/process.do');
    
    
    echo 'Connecting to Elavon Sandbox Server...<br>';
    doCurlTest('https://demo.myvirtualmerchant.com/VirtualMerchantDemo/process.do');
    It'd be interesting to see whether the basic connection attempt gets a different result from the authenticated transaction payment request attempt does.
    .

    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. #14
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,556
    Plugin Contributions
    28

    Default Re: Elavon - Converge CURL error 56 - TCP connection reset by peer

    Quote Originally Posted by DrByte View Post
    Around line 115 of curltester.php you could add these:
    Code:
    echo 'Connecting to Elavon Server...<br>';
    doCurlTest('https://www.myvirtualmerchant.com/VirtualMerchant/process.do');
    
    
    echo 'Connecting to Elavon Sandbox Server...<br>';
    doCurlTest('https://demo.myvirtualmerchant.com/VirtualMerchantDemo/process.do');
    It'd be interesting to see whether the basic connection attempt gets a different result from the authenticated transaction payment request attempt does.
    Interesting suggestion. I won't post the full response, but:

    Connecting to Elavon Server...
    GOOD: CURL Connection successful.

    Connecting to Elavon Sandbox Server...
    GOOD: CURL Connection successful.

    The last reply I got from Evalon support was:
    Thank you for your email Is the code you are using to generate the post to Converge? Looking at the values [I sent the logs as shown https://www.zen-cart.com/showthread....9#post1318269], everything appears to be correct, so it would seem like there is an error with you site posting this data. We would really have to see the actual value pairs your posting to be able to advise much more, but generally that reset message means Converge is unable to interpret what it’s receiving.

    I don't know how to capture the full post data, as they are asking.

  5. #15
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,556
    Plugin Contributions
    28

    Default Re: Elavon - Converge CURL error 56 - TCP connection reset by peer

    Evalon believes something about the server is blocking. I've asked them, waiting for a reply, but asking here to.

    What port or Apache settings or functions could be blocked? There are several other Zen Cart sites on this server and no payment issues. None are using Evalon though, so I'm wondering if there is something about this module that might be different.

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

    Default Re: Elavon - Converge CURL error 56 - TCP connection reset by peer

    Quote Originally Posted by jeking View Post
    The last reply I got from Evalon support was:
    Thank you for your email Is the code you are using to generate the post to Converge? Looking at the values [I sent the logs as shown https://www.zen-cart.com/showthread....9#post1318269], everything appears to be correct, so it would seem like there is an error with you site posting this data. We would really have to see the actual value pairs your posting to be able to advise much more
    The logs are reporting exactly the pairs that are being sent, less some obfuscation for sensitive data that should never be recorded in logs ... and which shouldn't be required for their tech teams to understand.

    Quote Originally Posted by jeking View Post
    Evalon believes something about the server is blocking. I've asked them, waiting for a reply, but asking here to.

    What port or Apache settings or functions could be blocked?
    It's such a basic call that there's little that could get in the way.
    It relies on your server making a CURL call to an HTTPS URL. That's it.

    And, since the basic connection attempt (without a transaction behind it) is fine, that suggests to me that maybe your auth credentials aren't transmitting properly (or they're not saved properly, so it's pulling bad data from your config settings and transmitting 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.

  7. #17
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,556
    Plugin Contributions
    28

    Default Re: Elavon - Converge CURL error 56 - TCP connection reset by peer

    Quote Originally Posted by DrByte View Post
    It's such a basic call that there's little that could get in the way.
    It relies on your server making a CURL call to an HTTPS URL. That's it.

    And, since the basic connection attempt (without a transaction behind it) is fine, that suggests to me that maybe your auth credentials aren't transmitting properly (or they're not saved properly, so it's pulling bad data from your config settings and transmitting that).
    I've confirmed the credentials twice. It seems like a simple process, which is why I have a hard time understanding what could possible be blocked. Thank you for the explanation.

    I don't expect I'll hear from them again until Monday.

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

    Default Re: Elavon - Converge CURL error 56 - TCP connection reset by peer

    I'm a bit uncomfortable with suggesting this, but it's worth exploring, if only to find out what happens when trying it.

    In the elavon module file, at line 638 you have this:
    Code:
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $endpoint . '?' . http_build_query($payload));
        curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    Change it to this, and see what happens:
    Code:
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $endpoint);
        curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    I ran into several problems using that approach with Elavon, but it'd be interesting to see what it does for your situation.
    .

    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.

  9. #19
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,556
    Plugin Contributions
    28

    Default Re: Elavon - Converge CURL error 56 - TCP connection reset by peer

    Interesting. Same array data is in the outgoing log, but I now do get a response.

    Sep-17-2016 01:09:50
    =================================

    Response Code: .
    Response Text:

    Results Received back from Elavon Converge: Array
    (
    [] =>
    [<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">] =>
    [<html>] =>
    [<head>] =>
    [<style type] => "text/css">
    [ BODY, TD, INPUT, SELECT, TEXTAREA, BUTTON, .normal {font-family:arial,helvetica,sans-serif; font-size:10pt; font-weight:normal; }] =>
    [ .small {font-size: 10pt}] =>
    [ .medium {font-size: 14pt}] =>
    [ .large {font-size: 18pt}] =>
    [</style>] =>
    [<!--4.2 Back / Cancel Button - S -->] =>
    [<script language] => "javascript" type
    [function backToProcess(){ ] =>
    [document.processForm.action] => "process.do";
    [document.processForm.method] => "post";
    [document.processForm.dispatchMethod.value ] => 'processBackTransaction';
    [document.processForm.submit(); ] =>
    [ }] =>
    [</script>] =>
    [<!--4.2 Back / Cancel Button - E -->] =>
    [</head>] =>
    [ ] =>
    [<body bgcolor] => "#FFFFFF" text
    [<br/>] =>
    [<p align] => "center">
    [</p>] =>
    [<form name] => "frmMenu" action
    [ <table width] => "80%" cellspacing
    [ <tr bgcolor] => '#294984'>
    [ <td height] => "25" colspan
    [ </tr>] =>
    [ <tr>] =>
    [ <td>] =>
    [ ] =>
    [ <table>] =>
    [ <tr><td nowrap>Error Code : </td>] =>
    [ <td><span id] => "errorCode">4000</span></td>
    [ <tr><td>Error Name : </td>] =>
    [ <td>VID Not Supplied</td>] =>
    [ <tr><td>Error Message : </td>] =>
    [ <td>The VirtualMerchant ID was not supplied in the authorization request.</td>] =>
    [ ] =>
    [ </table>] =>
    [ </td>] =>
    [ </table>] =>
    [<!-- ] =>
    [ Error Code : 4000<br>] =>
    [ Error Message : The VirtualMerchant ID was not supplied in the authorization request.] =>
    [-->] =>
    [ ] =>
    [<input type] => "hidden" name
    [</form>] =>
    [</body>] =>
    [</html>] =>
    )


    The obvious conclusion is the Merchant ID is wrong, but is says 'not supplied'. It's clearly in the settings of the module. I've verified it with my customer twice and used it when I called Elavon support. Gotta be the right value.

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

    Default Re: Elavon - Converge CURL error 56 - TCP connection reset by peer

    Ya, I think that's the sort of thing I was getting too.
    It's not parsing the received POST data properly when sent that way, which is why I wrote it the way it was originally.

    It'd be better to hear what their tech support are saying for attempted transactions using that account. They should be able to inspect all incoming requests, particularly when they result in an error, and tell you exactly why their system is either complaining or failing to respond. Or whether they're seeing you connect at all.
    .

    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 2 of 2 FirstFirst 12

Similar Threads

  1. v151 Elavon - Converge payment module?
    By LindaG in forum Addon Payment Modules
    Replies: 8
    Last Post: 26 Jan 2020, 03:02 AM
  2. Service Connection Failed-The connection to the server was reset while page loading
    By notageek in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 14 Sep 2015, 11:30 PM
  3. Connection Reset/Error 101 after changing servers
    By DannyVarley in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 7 Dec 2012, 06:49 PM
  4. curl connection test error on setup (invalid address)
    By hayden in forum General Questions
    Replies: 2
    Last Post: 15 Feb 2010, 12:04 AM
  5. peer-to-peer commerce
    By manojvp in forum General Questions
    Replies: 5
    Last Post: 7 Feb 2008, 12:06 AM

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