6 replies [Last post]
alanburke@drupal.org's picture
Offline
Joined: 08/05/2008
Juice: 82
Was this information Helpful?

Hi all,
I have a very crude payment gateway here
http://www.ubercart.org/contrib/6147
for Realex payments.
It works though.

I'm trying to upgrade it to Drupal 6,
tidying it up, based on
http://drupal.org/project/uc_worldpay

I have the form submission to Realex working fine
but I've hit a hitch on processing the response.

I keep getting this php fatal error
when calling the payment response URL

Fatal error: require_once() [function.require]: Failed opening required 'sites/all/modules/custom/uc_realex/uc_cart.pages.inc' (include_path='.:/usr/share/php:/usr/share/pear') in /home/alan/projects/drupal6/includes/menu.inc on line 346

My menu definition is

<?php
/**
  * Implementation of hook_menu().
  */
function uc_realex_menu() {
    
$items['cart/uc_realex/complete'] = array(
      
'title' => t('Order complete'),
      
'page_callback' => 'uc_realex_complete',
      
'access arguments' => user_access('access content'),
      
'type' => MENU_CALLBACK,
     );
   return
$items;
}
?>

Pretty much the same as uc_worldpay.

What might be causing the error?
Am I missing something obvious?

Regards
Alan

alanburke@drupal.org's picture
Offline
Joined: 08/05/2008
Juice: 82
Re: Payment module for Ubercart 2

Spotted the error at last
Should read

<?php
   
'page callback' => 'uc_realex_complete',
?>

not

<?php
   
'page_callback' => 'uc_realex_complete',
?>
jordendunne's picture
Offline
Joined: 09/15/2009
Juice: 11
Alan, Just wondering how you

Alan,

Just wondering how you were getting on with this module? In the absence of a Realex Redirect module for Drupal 6/Ubercart 2 I was trying to piece one together with your Ubercart 1 version and some bits of the newer 2Checkout module but was struggling a bit until I saw this post. Would you be able to provide any direction?

Thanks

alanburke@drupal.org's picture
Offline
Joined: 08/05/2008
Juice: 82
Its done

Hi there,
I have it done, just not committed to CVS yet.
I'll try to get it done this weekend maybe.

Alan

shaneod's picture
Offline
Joined: 10/06/2009
Juice: 2
Re: Its done

Hi Alan, I'm also very interested in this module, have you made any progress since your last post?

alanburke@drupal.org's picture
Offline
Joined: 08/05/2008
Juice: 82
CVS

I'll have yet another attempt at getting something up on CVS this weekend

alanburke@drupal.org's picture
Offline
Joined: 08/05/2008
Juice: 82
Now on Drupal.org

http://drupal.org/project/uc_realex
and ready for testers!