function commerce_paypal_menu in Commerce PayPal 7
Same name and namespace in other branches
- 7.2 commerce_paypal.module \commerce_paypal_menu()
Implements hook_menu().
File
- ./
commerce_paypal.module, line 12 - Implements PayPal payment services for use with Drupal Commerce.
Code
function commerce_paypal_menu() {
$items = array();
// Define an always accessible path to receive IPNs.
$items['commerce_paypal/ipn'] = array(
'page callback' => 'commerce_paypal_process_ipn',
'page arguments' => array(),
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
// Define an additional IPN path that is payment method / instance specific.
$items['commerce_paypal/ipn/%commerce_payment_method_instance'] = array(
'page callback' => 'commerce_paypal_process_ipn',
'page arguments' => array(
2,
),
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
return $items;
}