Zen Cart Logo
Forums / Addon Payment Modules / Help needed with the heartland payment module

Help needed with the heartland payment module

Locked

Views: 2,292

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
16 Jan 2009, 10:18 AM
#1
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Help needed with the heartland payment module

ok so I post this info to the url

    [ClientSessionID] => q1lcu0gmqfdiq72h9csnj96vn1
    [CustomerID] => 187
    [CustomerName] => AndySutton
    [UserName] => changed
    [Amount] => 8.08
    [ReturnURL] => http://mywebsiteurl/store/index.php?main_page=checkout_process
    [BackButtonCaption] => false
    [PromptCancel] => true
    [PageTitle] => Order confirmation Page
    [CustomerFirstName] => Andy
    [CustomerLastName] => Sutton
    [CustomerStreet2] => 919 western ave chicago
    [CustomerStreet3] =>  
    [CustomerEmail] => Andy
    [CustomerDayPhone] => 4257897858
    [CustomerNightPhone] => 4257897858
    [CustomerMobile] => Sutton
    [CustomerFax] => 
    [CustomerProvince] => 
    [CustomerCountryID] => 
    [Date] => January 16, 2009, 12:28 am
    [IP] => 216.43.193.242
    [Session] => q1lcu0gmqfdiq72h9csnj96vn1
    [url] => https://hps.webportal.test.secureexchange.net";

Now I use

$this->authorize = curl_exec($ch);
$this->commError = curl_error($ch);
$this->commErrNo = curl_errno($ch);

$this->commInfo = @curl_getinfo($ch);
curl_close ($ch);

as in the file and when I try to print the $response

$stringToParse = $this->authorize;
echo "Here goes the response";
echo $stringToParse;
exit();

All I get is empty string
Can someone pls tel me whats going on wrong here?
Thanks

16 Jan 2009, 10:53 AM
#2
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Help needed with the heartland payment module

ok I realized I had a " in the end of the url which seems to have corrected things
But now i get this as response

Here goes the response---<script type='text/javascript'>window.onload = function(){document.getElementById('ProcessBody').src='AccountList.aspx';}</script><script type='text/javascript'>window.onload = function(){document.getElementById('ProcessBody').src='AccountList.aspx';}</script>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1"><meta http-equiv="Expires" content="0" /><meta http-equiv="Cache-Control" content="no-cache" /><meta http-equiv="Pragma" content="no-cache" /><title>
	Payment
</title>
    <link href="Resources/CSS/TransPort.css" rel="stylesheet"/>
</head>
<body leftmargin="0" topmargin="0" bottommargin="0" rightmargin="0" class="bodyBackGround">
    <div>
        <table cellpadding="0" cellspacing="0" style="width:100%; height:100%">
	        <tr style='display:none'>
		        <td colspan="3" style="border-bottom:1px solid black;">
                    </td>
	        </tr>
	        <tr>
		        <td style="border-right:1px solid black; height:100%;vertical-align:top; text-align:right;display:none">
		            </td>
		        <td style="height:100%; vertical-align:top; text-align:left; width:100%">
		            <table style="height:100%; width:100%; vertical-align:top; text-align:left">
		                <tr style='display:none'>
		                    <td style="border-bottom:1px solid black;">
		                        </td>
		                </tr>
		                <tr>
		                    <td style=" width:100%; height:100%; vertical-align:top; text-align:left">
		                        <div id="PageHeader" >
                                    <table cellspacing="0" cellpadding="0" width="100%" bgcolor="#f0f1f1" border="0">
                                        <tbody>
                                            <tr>
                                                <td align="left"><img id="imgHeader" src="Resources/Picture/Header.png" border="0" /></td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    <table cellspacing="0" cellpadding="0" width="100%" bgcolor="#cccccc" border="0">
                                        <tbody>
                                            <tr>
                                                <td bgcolor="black" colspan="4">
                                                    <img src="Resources/Picture/spacer.gif"/></td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                                <div>
                                    <table cellspacing="0" cellpadding="0" width="100%">
                                        <tr>
                                            <td style="width: 100%;">
                                                <form name="FormMain" method="post" action="AccountMain.aspx" id="FormMain" autocomplete="off">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTExMzM1MDAyNjIPZBYEAgQPDxYCHghJbWFnZVVybAUcUmVzb3VyY2VzL1BpY3R1cmUvSGVhZGVyLnBuZ2RkAgUPZBYCAgEPDxYCHgRUZXh0BRdPcmRlciBjb25maXJtYXRpb24gUGFnZWRkZCdsEnmxRjeNs45XD1ahX/gymlQq" />

                                                    <div id="PageBody">
                                                        <table cellspacing="0" cellpadding="0" width="100%" align="left" valign="top">
                                                            <tr>
                                                                <td valign="top" align="left">
                                                                    <table width="100%" align="left">
                                                                        <tr>
                                                                            <td>
                                                                                <nobr><div style="margin-left:10px"><span id="lbBodyTitle" class="pageTitle">Order confirmation Page</span>
                                                                                <span id="lbBodyTitleVerfy" class="pageTitle" style="display:none">Verify Information</span></div></nobr>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td style="width: 100%; background-color: Silver; background-image: 'Resources/Picture/spacer.gif'"></td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                                <iframe allowTransparency="true" id="ProcessBody" src="src.htm" frameborder="0" width="100%" height="400px"></iframe>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                                <a href="javascript:popupVerisign('https://seal.verisign.com/splash?form_file=fdf/splash.fdf&dn=webportal.secureexchange.net&lang=en')"><img alt="" src="Resources/Picture/seal_s_en.gif" style="margin-left : 180px; margin-top : 0px;" border="0" /></a>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </div>
                                                    <input type="hidden" name="hidPageTime" id="hidPageTime" />
                                                
<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWAgKi8LvoAwKDnrHWBgsgo9FGPG6HqcQef6kNU2synB2y" /></form>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
		                    </td>
		                </tr>
		                <tr style='display:none'>
		                    <td style="border-top:1px solid black;">
		                        </td>
		                </tr>
		            </table>
		        </td>
		        <td style="border-left:1px solid black; height:100%;vertical-align:top; text-align:left; display:none">
		            </td>
	        </tr>
	        <tr style='display:none'>
		        <td colspan="3" style="border-top:1px solid black; width:100%;">
		            </td>
	        </tr>
        </table>
    </div>
    <script type="text/javascript">        
      function PageTimeOut()
      {
          document.getElementById('hidPageTime').value="TimeOut";
          document.FormMain.submit();
      }
    
      function popupVerisign(URL) 
      {
          sealWin = window.open(URL, 'win', 'toolbar=0,location=0,directories=0,scrollbars=1,status=1,menubar=1,resizable=1,width=600,height=450');
          self.name = "mainWin";
      }
      
      function AddNewHidden(tagName,tagValue)
      {
          var tagHidden;
          try
          {
             tagHidden = document.createElement("<INPUT type=hidden name=\""+tagName+"\"></INPUT>");
          }
          catch(e)
          {
             tagHidden = document.createElement('INPUT');
             tagHidden.type = "hidden";
             tagHidden.name = tagName;
          }
          tagHidden.value = tagValue;
          document.FormMain.appendChild(tagHidden);
      }
    </script>
</body>
</html>

---Parsed string ends
20 Feb 2009, 9:21 PM
#3
ctopher avatar

ctopher

New Zenner

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

Re: Help needed with the heartland payment module

I'm sorry, I can't help, but I was wondering where you got the Heartland payment module.

Sorry, I know this is thread hijacking so I'll stop and create my own. Of course this is an existing thread here:
http://www.zen-cart.com/forum/showthread.php?t=114653&highlight=heartland

That has yet to be answered....

But hope springs eternal!