   # Restart a subscription that was previously canceled
   #
   restartSubscription: (userId, card) ->
+    console.log 'Restarting subscription for', userId
     user = BillingUser.first(_id: userId)
     if user then customerId = user.profile.customerId
     unless user and customerId then new Meteor.Error 404, "User not found.  Subscription cannot be restarted."

    future.wait()

  #
  # Remove subscriptionId, 
  #
  subscriptionDeleted: (customerId) ->
    user = BillingUser.first('profile.customerId': customerId)
    unless user then new Meteor.Error 404, "User not found.  Subscription cannot be deleted."


        future.throw new Meteor.Error error.error, error.message
    future.wait()

  #
  # Update stripe subscription for user with provided plan and quantitiy
  #
  updateSubscription: (userId, plan, quantity) ->
    console.log 'Updating subscription for', userId    
    user = BillingUser.first(_id: userId)
