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