Forums / Addon Payment Modules / Error accessing Gateway -- Innovative Gateway module

Error accessing Gateway -- Innovative Gateway module

Started by samolian on 12 Dec 2007, 11:05 PM · Views: 13,107

Results 1 to 20 of 28
12 Dec 2007, 11:05 PM
#1
samolian avatar

samolian

New Zenner

Join Date:
Dec 2007
Posts:
3
Plugin Contributions:
0

Error accessing Gateway -- Innovative Gateway module

I installed the payment module for Innovative Gateway solutions which can be found "www.sanguisdevelopment.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.

13 Dec 2007, 4:56 PM
#2
samolian avatar

samolian

New Zenner

Join Date:
Dec 2007
Posts:
3
Plugin Contributions:
0

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.

29 Apr 2008, 8:43 PM
#3
glennnphp avatar

glennnphp

New Zenner

Join Date:
Apr 2008
Posts:
24
Plugin Contributions:
0

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...

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;
}

?>
6 May 2008, 5:13 PM
#4
czyc avatar

czyc

New Zenner

Join Date:
Apr 2008
Posts:
2
Plugin Contributions:
0

Re: Error accessing Gateway -- Innovative Gateway module

Change```
$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));

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));

12 Jun 2008, 10:06 PM
#5
z3n avatar

z3n

Zen Follower

Join Date:
Apr 2008
Posts:
122
Plugin Contributions:
0

Re: Error accessing Gateway -- Innovative Gateway module

Which page do you make this code change to?

9 Oct 2008, 11:32 PM
#6
amatkins avatar

amatkins

New Zenner

Join Date:
Feb 2008
Posts:
26
Plugin Contributions:
0

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!!

April

https://www.amatkins.com
Website Design and Solutions

23 Mar 2009, 11:17 PM
#8
balwks avatar

balwks

New Zenner

Join Date:
Oct 2005
Posts:
3
Plugin Contributions:
0

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

25 Mar 2009, 3:16 PM
#9
balwks avatar

balwks

New Zenner

Join Date:
Oct 2005
Posts:
3
Plugin Contributions:
0

Re: Error accessing Gateway -- Innovative Gateway module

It's working now.

2 Apr 2009, 1:21 PM
#10
dmcc31 avatar

dmcc31

New Zenner

Join Date:
Apr 2009
Posts:
5
Plugin Contributions:
0

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

8 Sep 2009, 9:40 PM
#11
tinat avatar

tinat

New Zenner

Join Date:
Sep 2009
Posts:
1
Plugin Contributions:
0

Re: Error accessing Gateway -- Innovative Gateway module

balwks:

It's working now.

thanks for telling us how you did it. :clap:
you should be banned for life

19 Mar 2010, 10:34 AM
#13
jibon avatar

jibon

New Zenner

Join Date:
Dec 2008
Location:
Bangladesh
Posts:
32
Plugin Contributions:
0

Re: Error accessing Gateway -- Innovative Gateway module

Hi,
I want to intregrated innovative payment getway . I download this module from http://www.zen-cart.com/archived_contributions/payment/innovative_gateway_solutions1_1_.1.zip. After configure from the admin panel it doed not work. I have set the proxy server “proxy.shr.secureserver.net:3128” from the admin configuration. Please help me. My error is "checkout_payment&error_message=There+has+been+an+error+processing+your+credit+card.+Please+try+again.<br>Error+accessing+gateway&zenid=afvjokq4isqhbvceb1l4fdrm60".

2 Apr 2010, 3:39 PM
#14
valerielat avatar

valerielat

New Zenner

Join Date:
Aug 2009
Posts:
13
Plugin Contributions:
0

Re: Error accessing Gateway -- Innovative Gateway module

Is any still using this add on? I am about to implement this for a client and of course they have GoDaddy hosting. Just was wondering if anyone would be around if I needed support.

Is anybody out there?!>!:blink:

9 Apr 2010, 7:48 PM
#16
valerielat avatar

valerielat

New Zenner

Join Date:
Aug 2009
Posts:
13
Plugin Contributions:
0

Re: Error accessing Gateway -- Innovative Gateway module

I am getting error accessing gateway error. Can anyone help?

10 Apr 2010, 4:40 AM
#17
micki711 avatar

micki711

New Zenner

Join Date:
Jul 2009
Posts:
13
Plugin Contributions:
0

Re: Error accessing Gateway -- Innovative Gateway module

I installed the archived Innovative payment gateway. There is no place to put in the CVV number. How do I change the code to input the CVV number?
Thanks

26 Apr 2010, 2:37 AM
#18
valerielat avatar

valerielat

New Zenner

Join Date:
Aug 2009
Posts:
13
Plugin Contributions:
0

Re: Error accessing Gateway -- Innovative Gateway module

I have resolved this for my site. My problem was two-fold.

First of all, make sure you register your store's IP address(es) on the Merchant Portal for Innovative Gateway per these following instructions from Innovative Gateway:

Our systems depend heavily on registration of information and the secrecy of your password. In order to provide an even higher level of security to our merchants, we ask that you register the IP addresses for the servers that will be sending transaction information to your gateway account.

If you DO NOT have a shopping cart and plan to manually use our Virtual Terminal only to process transactions, you then will not need to register an IP address.

To register your IP numbers on our system, please log in to the Merchant Portal at https://merchants.innovativegateway.com. Once you have logged in, click on the Security menu, and then click on Edit Registered IP(s). If you need help, you can call our Support team at 877-484-8444, or send us an email to [email protected], and we can assist you in getting the correct IP information registered.

The second problem I had was with the Path to cURL. I found this info in the Zen Cart admin back-end under Tools --->Server/Version Info and then under the Configure Command. While the install set up the path as /usr/local/bin/curl, my configuration with GoDaddy is /usr/bin/curl. I don't normally use GoDaddy hosting so this was unfamiliar to me.

Once I registered the IP addresses with the Innovative Merchant Portal and modified the Path to cURL, when I entered the test credit card number, my error message was that the gateway FAILED to process my card. When I entered a REAL credit card number, the transaction was processed.

Hope this helps someone!

25 Aug 2010, 5:44 PM
#19
danatswift avatar

danatswift

New Zenner

Join Date:
Aug 2010
Location:
Norwich, CT
Posts:
26
Plugin Contributions:
0

Re: Error accessing Gateway -- Innovative Gateway module

That was exactly what I needed. I had my IP registered with Innovative, but the cURL path change was keeping me from working properly. I was getting the unsupported webpage format message before, now it works properly and my .20c test of my CC showed right up in my account.
Thank-you much.
Dan

2 Mar 2011, 9:45 PM
#20
dorie avatar

dorie

New Zenner

Join Date:
Jul 2010
Posts:
17
Plugin Contributions:
0

Re: Error accessing Gateway -- Innovative Gateway module

Thanks to previous post. (http://www.zen-cart.com/forum/showthread.php?t=82807&highlight=innovative+gateway&page=2)

I search a while and cannot get answers related to my issue. :( Please HELP! HELP! currently run zen 1.3.9f.

I install Innovative Gateway on payment module by following steps:

  1. http://www.zen-cart.com/archived_con...ions1_1_.1.zip
  2. I also did below to update innovative.php in /includes/modules/payment/
  3. I also did
    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));
  4. I did update http to https://transactions.innovativegatew...ateway.aai.Aai
  5. I register SSL with my dedicate IP.
  6. I use my live account run test, i will have the blank page popup, if I use test account I will get HTTP 406.

Issues:
In live account testing, if input incorrect CC, I try several orders and it shows Blank Page on the screen (checkout_process) and nothing change till I cannot wait and hit 1) Refresh Button from browser, then browser info window popup saying "To display the webpage again, IE needs to resend the information...." I hit 1A) "Retry” on popup screen then another transaction going to validation process to make Blank Page longer. If I hit 1B) cancel, browser said Webpage is expired.

In test account testing, after step 2 – checkout_payment, there is a HTTP 406, cannot read this webpage format shows up.

Please HELP and advice what I did wrong. Thanks