[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"><<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>
--
[ 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