function uc_paypal_menu in Ubercart 7.3
Same name and namespace in other branches
- 5 payment/uc_paypal/uc_paypal.module \uc_paypal_menu()
- 6.2 payment/uc_paypal/uc_paypal.module \uc_paypal_menu()
Implements hook_menu().
File
- payment/
uc_paypal/ uc_paypal.module, line 16 - Integrates various PayPal payment services and Instant Payment Notifications (IPN) with Ubercart!
Code
function uc_paypal_menu() {
// Always accessible, helps for testing while site is offline.
$items['uc_paypal/ipn'] = array(
'title' => 'PayPal IPN',
'page callback' => 'uc_paypal_ipn',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
'file' => 'uc_paypal.pages.inc',
);
// Callback functions for Express Checkout.
$items['cart/echeckout/selected'] = array(
'title' => 'Review order',
'page callback' => 'uc_paypal_ec_review_redirect',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
'file' => 'uc_paypal.pages.inc',
);
$items['cart/echeckout/review'] = array(
'title' => 'Review payment',
'page callback' => 'uc_paypal_ec_review',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
'file' => 'uc_paypal.pages.inc',
);
$items['cart/echeckout/submit'] = array(
'title' => 'Submit order',
'page callback' => 'uc_paypal_ec_submit',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
'file' => 'uc_paypal.pages.inc',
);
// Callback functions for Website Payments Standard.
$items['uc_paypal/wps/complete/%uc_order'] = array(
'title' => 'PayPal payment complete',
'page callback' => 'uc_paypal_complete',
'page arguments' => array(
3,
),
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
'file' => 'uc_paypal.pages.inc',
);
$items['uc_paypal/wps/cancel'] = array(
'title' => 'PayPal payment canceled',
'page callback' => 'uc_paypal_cancel',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
'file' => 'uc_paypal.pages.inc',
);
return $items;
}