You are here

function uc_stripe_cancel in Ubercart Stripe 6.2

Same name and namespace in other branches
  1. 6 uc_stripe.module \uc_stripe_cancel()
  2. 7.3 uc_stripe.module \uc_stripe_cancel()
  3. 7 uc_stripe.module \uc_stripe_cancel()
  4. 7.2 uc_stripe.module \uc_stripe_cancel()

UC Recurring: Cancel a recurring fee. This runs when subscriptions are cancelled Since we're handling charge intervals in ubercart, this doesn't need to do anything.

Parameters

$order:

$op:

Return value

bool

1 string reference to 'uc_stripe_cancel'
uc_stripe_recurring_info in ./uc_stripe.module
Implements hook_recurring_info() to integrate with uc_recurring

File

./uc_stripe.module, line 549
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_cancel($order, $op) {
  $message = t("Subscription Canceled");
  uc_order_comment_save($order->order_id, $order->uid, $message, 'order', 'completed', FALSE);
  return TRUE;
}