You are here

function uc_stripe_cart_item in Ubercart Stripe 7

Same name and namespace in other branches
  1. 6 uc_stripe.module \uc_stripe_cart_item()

Implements hook_cart_item().

File

./uc_stripe.module, line 153
A module used for processing payments with Stripe.

Code

function uc_stripe_cart_item($op, &$item) {
  if (module_exists('uc_recurring')) {
    if (uc_credit_default_gateway() == 'uc_stripe') {
      if (variable_get('uc_stripe_cartinfo', TRUE)) {
        if (db_result(db_query("SELECT * FROM {uc_recurring_stripe} WHERE nid = %d", $item->nid))) {
          $item->title = _uc_stripe_fancy_name($item->nid);
        }
      }
    }
  }
}