You are here

function uc_stripe_menu in Ubercart Stripe 7.3

Implements hook_menu().

File

./uc_stripe.module, line 58
A stripe.js PCI-compliant payment gateway Forked from Bitcookie's work (thanks!) which was posted at http://bitcookie.com/blog/pci-compliant-ubercart-and-stripe-js from discussion in the uc_stripe issue queue, https://www.drupal.org/node/1467886

Code

function uc_stripe_menu() {
  $items = array();
  $items['uc_stripe/ajax/confirm_payment'] = array(
    'access callback' => true,
    'page callback' => '_uc_stripe_confirm_payment',
    'delivery callback' => 'drupal_json_output',
    'type' => MENU_CALLBACK,
  );
  $items['stripe/authenticate-payment/%'] = array(
    'access callback' => true,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'uc_stripe_authenticate_payment_form',
      2,
    ),
    'type' => MENU_CALLBACK,
    'file' => 'uc_stripe.pages.inc',
  );
  return $items;
}