Which version of Drupal are you using? One possible reason could be that your syntax for hook_menu is for Drupal 5 and not Drupal 6. <a href="http://api.drupal.org/api/drupal/developer--hooks--core.php/function/hook_menu/6">http://api.drupal.org/api/drupal/developer--hooks--core.php/function/hook_menu/6</a><br>
<br><div class="gmail_quote">On Fri, Nov 26, 2010 at 7:36 AM, Mutuku Ndeti <span dir="ltr">&lt;<a href="mailto:jnmutuku@gmail.com">jnmutuku@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Please help me know what I am doing wrong. I am not getting the posted<br>
data from the payment provider.<br>
<br>
Below is the  code snippet on hook_menu()<br>
<br>
<br>
/*implementing hook_menu() */<br>
<br>
function uc_test_menu() {<br>
 $items = array();<br>
<br>
<br>
  $items[] = array(<br>
     &#39;path&#39; =&gt; &#39;uc_test/complete&#39;,<br>
     &#39;title&#39; =&gt; t(&#39;test payment complete&#39;),<br>
     &#39;callback&#39; =&gt; &#39;uc_test_complete&#39;,<br>
     &#39;access&#39; =&gt; user_access(&#39;access content&#39;),<br>
     &#39;type&#39; =&gt; MENU_CALLBACK,<br>
   );<br>
<br>
<br>
 return $items;<br>
}<br>
<br>
/*implementing  uc_test_complete(). The payment provider posts back<br>
variables &quot;status&quot; and &quot;id&quot;  */<br>
<br>
function uc_test_complete() {<br>
 $status=$_POST[&#39;status&#39;];<br>
  $id=$_POST[&#39;id&#39;];<br>
  print $status;<br>
  print $id;<br>
}<br>
<br>
On 11/23/10, Christopher M. Jones &lt;<a href="mailto:cjones@partialflow.com">cjones@partialflow.com</a>&gt; wrote:<br>
&gt; Steve&#39;s response still applies. Implement hook_menu. Provide a page<br>
&gt; callback. In the callback you can pick up the $_POST variable and<br>
&gt; continue processing.<br>
&gt;<br>
&gt; On 11/23/2010 12:31 AM, Mutuku Ndeti wrote:<br>
&gt;&gt; Thanks steve for the response.<br>
&gt;&gt;<br>
&gt;&gt; I asked the question the wrong way.<br>
&gt;&gt;<br>
&gt;&gt; After I post payment information to the providers url, the provider<br>
&gt;&gt; requires a url on my side where they can post back the results. From<br>
&gt;&gt; here I can get the results from the information posted by the provider<br>
&gt;&gt; and continue with processing the purchase.<br>
&gt;&gt;<br>
&gt;&gt; How do I do this in drupal?<br>
&gt;&gt;<br>
&gt;&gt; Thanks<br>
&gt;&gt;<br>
&gt;&gt; On 11/21/10, Steve Power&lt;<a href="mailto:steev@initsix.co.uk">steev@initsix.co.uk</a>&gt;  wrote:<br>
&gt;&gt;&gt; you generally pass the call back url to the payment provider, so if you<br>
&gt;&gt;&gt; define it in the menu system it can be anything you want.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Sun, Nov 21, 2010 at 6:07 PM, Mutuku Ndeti&lt;<a href="mailto:jnmutuku@gmail.com">jnmutuku@gmail.com</a>&gt;  wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I am developing(rather adapting uc_echecknet) for a local payment<br>
&gt;&gt;&gt;&gt; solution. The payment solution provider posts the results back to my<br>
&gt;&gt;&gt;&gt; shopping cart to a callback url.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I am able to post data to the provider...but I am not sure which url<br>
&gt;&gt;&gt;&gt; to give the provider. Is there a stardard one or do i need to create<br>
&gt;&gt;&gt;&gt; one with the module? Any direction on how to do this?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Thanks<br>
&gt;&gt;&gt;&gt; --<br>
&gt;&gt;&gt;&gt; [ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Steve Power<br>
&gt;&gt;&gt; Principal Consultant<br>
&gt;&gt;&gt; Mobile: +44 (0) 7747 027 243<br>
&gt;&gt;&gt; Fax: +44 (0)160 421 2871<br>
&gt;&gt;&gt; Skype: steev_initsix<br>
&gt;&gt;&gt; <a href="http://www.initsix.co.uk" target="_blank">www.initsix.co.uk</a> :: Initsix Heavy Engineering Limited<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; This email and any attachments to it may be confidential and are intended<br>
&gt;&gt;&gt; solely for the use of the individual to whom it is addressed. Any views<br>
&gt;&gt;&gt; or<br>
&gt;&gt;&gt; opinions expressed are solely those of the author and do not necessarily<br>
&gt;&gt;&gt; represent those of Initsix Heavy Engineering Limited.<br>
&gt;&gt;&gt; If you are not the intended recipient of this email, you must neither<br>
&gt;&gt;&gt; take<br>
&gt;&gt;&gt; any action based upon its contents, nor copy or show it to anyone.<br>
&gt;&gt;&gt; Please contact the sender if you believe you have received this email in<br>
&gt;&gt;&gt; error.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Initsix Heavy Engineering Limited<br>
&gt;&gt;&gt; Registered in the UK: 5036938<br>
&gt;&gt;&gt; Registered Address: 243 Kettering Road, Northampton, NN2 7DU, England.<br>
&gt;&gt;&gt;<br>
&gt; --<br>
&gt; [ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
&gt;<br>
<font color="#888888">--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</font></blockquote></div><br>