You are here

function commerce_sagepay_paypal_menu in Drupal Commerce SagePay Integration 7

Implements hook_menu().

File

modules/commerce_sagepay_paypal/commerce_sagepay_paypal.module, line 28

Code

function commerce_sagepay_paypal_menu() {
  $items = array();

  // Define a path to receive PayPal Callback).
  $items['commerce-sagepay/paypal-callback/%'] = array(
    'page callback' => 'commerce_sagepay_paypal_handle_callback',
    'page arguments' => array(
      2,
    ),
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
    'file' => 'includes/commerce_sagepay_paypal.inc',
  );
  return $items;
}