function commerce_stripe_menu in Commerce Stripe 7
Same name and namespace in other branches
- 7.3 commerce_stripe.module \commerce_stripe_menu()
Implements hook_menu().
File
- ./
commerce_stripe.module, line 15 - This module provides Stripe (http://stripe.com/) payment gateway integration to Commerce. Commerce Stripe offers a PCI-compliant way to process payments straight from you Commerce shop.
Code
function commerce_stripe_menu() {
$items = array();
// Add a menu item to stripe payment transactions that can be refunded.
$items['admin/commerce/orders/%commerce_order/payment/%commerce_payment_transaction/commerce-stripe-refund'] = array(
'title' => 'Refund',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'commerce_stripe_refund_form',
3,
5,
),
'access callback' => 'commerce_stripe_return_access',
'access arguments' => array(
3,
5,
),
'type' => MENU_DEFAULT_LOCAL_TASK,
'context' => MENU_CONTEXT_INLINE,
'weight' => 1,
'file' => 'includes/commerce_stripe.admin.inc',
);
return $items;
}