You are here

function uc_cybersource_menu in Ubercart 5

Same name and namespace in other branches
  1. 6.2 payment/uc_cybersource/uc_cybersource.module \uc_cybersource_menu()
  2. 7.3 payment/uc_cybersource/uc_cybersource.module \uc_cybersource_menu()

Implementation of hook_menu().

File

payment/uc_cybersource/uc_cybersource.module, line 16
A module used for CyberSource's Silent Order POST method of payment.

Code

function uc_cybersource_menu($may_cache) {
  if ($may_cache) {
    $items[] = array(
      'path' => 'cs/receipt',
      'title' => t('Payment received'),
      'callback' => 'uc_cybersource_receipt',
      'access' => TRUE,
      'type' => MENU_CALLBACK,
    );
  }
  else {
    $items[] = array(
      'path' => 'admin/store/orders/' . arg(3) . '/cs_tax',
      'title' => t('Order @order_id Taxes', array(
        '@order_id' => arg(3),
      )),
      'callback' => 'uc_cybersource_tax_test',
      'callback arguments' => array(
        arg(3),
      ),
      'access' => user_access('administer store'),
      'type' => MENU_CALLBACK,
    );
  }
  return $items;
}