   #
   # Delete a card on customer and unset cardId
   #
-  deleteCard: (userId, card) ->
+  deleteCard: (userId, cardId) ->
     console.log 'Deleting card for', userId
     user = BillingUser.first(_id: userId)
     unless user then throw new Meteor.Error 404, "User not found.  Card cannot be deleted."

    createCard = Async.wrap Stripe.customers, 'createCard'
    try
      card = createCard user.billing.customerId, card: card.id
      Meteor.users.update _id: user._id,
        $set: 'billing.cardId': card.id
    catch e
      console.error e
      throw new Meteor.Error 500, e.message



  #
  # Get past invoices
  #
  getInvoices: ->
