You are here

function uc_stripe_order_pane_stripe in Ubercart Stripe 7.2

Same name and namespace in other branches
  1. 6.2 uc_stripe.module \uc_stripe_order_pane_stripe()
  2. 7.3 uc_stripe.module \uc_stripe_order_pane_stripe()

Implements uc_order_pane_callback() specified in 'callback' of uc_stripe_uc_order_pane()

Returns text for customer id for order pane.

_state

Parameters

$op:

$order:

$form:

Return value

array

1 string reference to 'uc_stripe_order_pane_stripe'
uc_stripe_uc_order_pane in ./uc_stripe.module
Implements hook_order_pane to provide the stripe customer info

File

./uc_stripe.module, line 262
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_order_pane_stripe($op, $order, &$form = NULL, &$form_state = NULL) {
  switch ($op) {
    case 'view':
      $stripe_customer_id = _uc_stripe_get_customer_id($order->uid);
      $output = t("Customer ID: ") . $stripe_customer_id;
      return array(
        '#markup' => $output,
      );
    default:
      return;
  }
}