Page 1 of 3 123 LastLast
Results 1 to 10 of 28
  1. #1
    Join Date
    Dec 2007
    Posts
    3
    Plugin Contributions
    0

    Default Error accessing Gateway -- Innovative Gateway module

    I installed the payment module for Innovative Gateway solutions which can be found "www.####################################.com/zenfiles.html"

    When I go to checkout, I get the error "Error accessing Gateway". I am not sure if that error means that the gateway isn't responding, refusing the connection or if this is just a generic error.

    I have tried contacting the developer of this module but the contact form doesn't seem to be working.

    So, now I am stuck not knowing what to do.

    I've testing making payments using the Credit card module that came with Zencart and that worked. So I konw it's not the intallation of Zencart that is the problem.

    Is anyone else using Innovative Gateway successfully? With or without this module above?

    Thanks for any help in advance.

  2. #2
    Join Date
    Dec 2007
    Posts
    3
    Plugin Contributions
    0

    Default Re: Error accessing Gateway -- Innovative Gateway module

    I found the problem. Godaddy says that all CURL traffic (if that is the right word) needs to go through a proxy server.

    I downloaded an example from the IG websitte, plugged in the proxy addy and got a response from the server.

    This is good news but also bad news, the payment module I linked to earlier wasn't written to support a proxy address. I've tried recoding it but I have absolutely no idea what I am doing and nothing worked obviously.

    I am sure this is very simple to a php coder. I've tried contacting the original developer by phone and email with no answer back.

    I have a feeling that this code is what needs to be changed but not 100% sure.

    -------------------------------

    // post the data

    $cmd = MODULE_PAYMENT_INNOVATIVE_CURL . " -d \"$data\" " . MODULE_PAYMENT_INNOVATIVE_URL;
    // echo "curl command<br>" . $cmd . "<br>";

    exec($cmd, $return_string);

    --------------------------------

    What would I have to do to support curl through a proxy. Following is the proxy part of the example code that IG gives that I used successfully.

    -------------------------------

    //--< GATEWAY/ISP OPTIONS >------------------

    $url = "https://transactions.innovativegateway.com/servlet/com.gateway.aai.Aai";
    $user_agent = "Mozilla/4.0";
    $proxy = "proxy.shr.secureserver.net:3128"; // If you use a proxy server to connect
    // your server to the Internet then put
    // in its address here.

    // Create the POST form to send to the gateway using
    // the incoming array.
    $data = "";
    foreach ($transaction as $name => $value) {
    $data .= "&" . $name . "=" . urlencode($value);
    }

    $data = substr($data,1);

    // Create the connection through the cURL extension
    $ch = curl_init();
    curl_setopt ($ch, CURLOPT_URL, $url);

    if ($proxy != "")
    curl_setopt ($ch, CURLOPT_PROXY, $proxy);

    curl_setopt ($ch, CURLOPT_USERAGENT, $user_agent);
    curl_setopt ($ch, CURLOPT_POST, 1);
    curl_setopt ($ch, CURLOPT_POSTFIELDS, $data);
    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
    curl_setopt ($ch, CURLOPT_TIMEOUT, 120);
    $result = curl_exec ($ch);
    curl_close($ch);

    ------------------------------------------

    If anyone knows how to modify the payment module to use a proxy address like the example code immediately above, I am sure I wouldn't be the only one that could use this.

    Anyone's help in this would be greatly appreciated as I am totally lost.

  3. #3
    Join Date
    Apr 2008
    Posts
    24
    Plugin Contributions
    0

    Default Re: Error accessing Gateway -- Innovative Gateway module

    http://help.godaddy.com/article/289


    yes, you're right. note the changes i made below... connects for me now...


    Code:
    
    function PostTransaction ($transaction) {
    //	This function accepts one variable as an array.
    //	That array should contain all of the variables 
    //	required to connect to and authorized payments in
    //	the payment gateway.
    //
    //	You can create as many "object arrays" as you like
    //	and when ready send them through the PostTransaction()
    //	function to perform the appropriate action.
    
    //--< GATEWAY/ISP OPTIONS >------------------
    
    	$URL="https://transactions.innovativegateway.com/servlet/com.gateway.aai.Aai";
    	$user_agent = "Mozilla/4.0";
    	$proxy = ""; // If you use a proxy server to connect
    		     // your server to the Internet then put
    		     // in its address here.
    
    	// Create the POST form to send to the gateway using
    	// the incoming array.
    	$data = "";
    	foreach ($transaction as $name => $value) {
    	    $data .= "&" . $name . "=" . urlencode($value);
    	}
    
    	$data = substr($data,1);
    
    	// Create the connection through the cURL extension
            $ch = curl_init(); 
    
    	// if ($proxy != "")
    	// curl_setopt ($ch, CURLOPT_PROXY, $proxy); 
    
    echo "URL = $URL <br>n";
    curl_setopt ($ch, CURLOPT_VERBOSE, 1);
    curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);
    curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
    curl_setopt ($ch, CURLOPT_PROXY,"http://proxy.shr.secureserver.net:3128");
    curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
    curl_setopt ($ch, CURLOPT_URL, $URL);
    curl_setopt ($ch, CURLOPT_TIMEOUT, 120);
    
           	curl_setopt ($ch, CURLOPT_USERAGENT, $user_agent); 
    	curl_setopt ($ch, CURLOPT_POST, 1);
    	curl_setopt ($ch, CURLOPT_POSTFIELDS, $data);
                    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); 
                    curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
    
    //  curl_setopt ($ch, CURLOPT_TIMEOUT, 120);
    	
    $result = curl_exec ($ch);
    echo "<hr><br>n";
    echo 'Errors: ' . curl_errno($ch) . ' ' . curl_error($ch) . '<br><br>';
    echo "<hr><br>n";
    curl_close ($ch);
    // print "result = $result";
    echo "<hr><br>n";
    
    	// Now we've got the results back in a big string.
    
    	// Parse the string into an array to return
    	$rArr = explode("|",$result);
    
    	$returnArr="";
    	for($i=0;$i<count($rArr);$i++)
    	{
    		$tmp2 = explode("=", $rArr[$i]);
    
    		// YES, we put all returned field names in lowercase
    		$tmp2[0] = strtolower($tmp2[0]);
    
    		// YES, we strip out HTML tags.
    		$returnArr[$tmp2[0]] = strip_tags($tmp2[1]);
    	}
    
    	// Return the array.
    	return $returnArr;
    }
    
    ?>

  4. #4
    Join Date
    Apr 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: Error accessing Gateway -- Innovative Gateway module

    Change
    Code:
    $message = sprintf(MODULE_PAYMENT_INNOVATIVE_TEXT_ERROR_MESSAGE, strip_tags($result[1]));
    zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode($message), 'SSL', true, false));
    to
    Code:
    global $messageStack;
    $messageStack->add_session('checkout_payment', MODULE_PAYMENT_INNOVATIVE_TEXT_ERROR_MESSAGE . $result[1], 'error');
    zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true, false));
    for friendlier errors.

  5. #5
    Join Date
    Apr 2008
    Posts
    121
    Plugin Contributions
    0

    Default Re: Error accessing Gateway -- Innovative Gateway module

    Which page do you make this code change to?

  6. #6

    Default Re: Error accessing Gateway -- Innovative Gateway module

    Does anyone still have the module files for the innovative gateway module? I have a client who uses their service and the website referenced in the posting does not work. If anyone has that module and could share it with me then please send me a message and I will send you my email address!

    Many thanks in advance!!

  7. #7
    Join Date
    Mar 2009
    Posts
    1
    Plugin Contributions
    0

    Default Re: Error accessing Gateway -- Innovative Gateway module


  8. #8
    Join Date
    Oct 2005
    Posts
    3
    Plugin Contributions
    0

    Default Re: Error accessing Gateway -- Innovative Gateway module

    No matter what I do, I get "There has been an error processing your credit card. Please try again." or "Error accessing gateway." What's the secret here? The closest I got was when I used the mod "as is" and had the "example.php" supplied on the Innovative site in the same file (with the separate "PostGateway.function" in the same folder). Then it gave the standard error message with another message below it telling me the expiration date was invalid (which it was). So it seems that the code that Innovative supplies works, so now I just have to figure how to integrate it with ZC. My coding skills are minimal, but I've spent quite alot of time so far on this. Can anyone offer any suggestions on how they got it to work?
    Thanks,
    Shawn

  9. #9
    Join Date
    Oct 2005
    Posts
    3
    Plugin Contributions
    0

    Default Re: Error accessing Gateway -- Innovative Gateway module

    It's working now.

  10. #10
    Join Date
    Apr 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: Error accessing Gateway -- Innovative Gateway module

    How did you get it working? I have the same error "Error accessing gateway."

    Any help would be greatly appreciated

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Innovative Gateway module
    By Micki711 in forum Addon Payment Modules
    Replies: 4
    Last Post: 24 Apr 2010, 06:17 AM
  2. Does Anyone Use Innovative Gateway Payment?
    By Micki711 in forum Addon Payment Modules
    Replies: 0
    Last Post: 14 Apr 2010, 01:39 PM
  3. Innovative gateway payment mod HELP
    By MULISH in forum Addon Payment Modules
    Replies: 0
    Last Post: 14 May 2009, 11:06 PM
  4. Innovative Gateway Needed Please Help
    By Little Haven in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 22 Nov 2006, 05:02 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