function uc_recurring_hosted_menu in UC Recurring Payments and Subscriptions 7.2
Same name and namespace in other branches
- 6.2 modules/uc_recurring_hosted/uc_recurring_hosted.module \uc_recurring_hosted_menu()
Implements hook_menu().
File
- modules/
uc_recurring_hosted/ uc_recurring_hosted.module, line 20 - Provides hosted gateway specific code for recurring payments, specifically Authorize.net ARB and Paypal WPS
Code
function uc_recurring_hosted_menu() {
$items = array();
if (module_exists('uc_paypal')) {
$items['uc_recurring_hosted/paypal/ipn'] = array(
'title' => 'PayPal IPN',
'page callback' => 'uc_recurring_hosted_paypal_ipn',
'access callback' => TRUE,
//'uc_paypal_ipn_access',
'type' => MENU_CALLBACK,
'file' => 'uc_recurring_hosted.paypal_ipn.inc',
);
$items['uc_recurring_hosted/paypal/ipn/%'] = array(
'title' => 'PayPal IPN',
'page callback' => 'uc_recurring_hosted_paypal_ipn',
'page arguments' => array(
3,
),
'access callback' => TRUE,
//'uc_paypal_ipn_access',
'type' => MENU_CALLBACK,
'file' => 'uc_recurring_hosted.paypal_ipn.inc',
);
// A mock url for emulating the paypal IPN.
$items['uc_recurring_hosted/paypal/cgi-bin/webscr'] = array(
'title' => 'PayPal Website',
'page callback' => '_uc_recurring_hosted_paypal_mock_web_page',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
'file' => 'uc_recurring_hosted.paypal_ipn.inc',
);
}
return $items;
}