[prev in list] [next in list] [prev in thread] [next in thread] 

List:       drupal-support
Subject:    Re: [support] Help with payment solution development(Post back url)
From:       Carl Wiedemann <carl.wiedemann () gmail ! com>
Date:       2010-11-27 20:02:06
Message-ID: AANLkTinuvK9DQhaabqUmxUTo6Ft31+y54HhK5ir2L1Uc () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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.
http://api.drupal.org/api/drupal/developer--hooks--core.php/function/hook_menu/6

On Fri, Nov 26, 2010 at 7:36 AM, Mutuku Ndeti <jnmutuku@gmail.com> wrote:

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

[Attachment #5 (text/html)]

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>



-- 
[ Drupal support list | http://lists.drupal.org/ ]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic