 
     switch type
       when 'group', 'expensed'
-        getGroup().fetchPaymentInfo callback
+        KD.getGroup().fetchPaymentInfo callback
       when 'user'
         JPaymentPlan.fetchAccountDetails callback
 

      subscription.plan = plansByCode[subscription.planCode]
    
    { plans, subscriptions }



    return form

  debitSubscription: ->
    subscription.debit pack, (err, nonce) =>
      return  if KD.showError err

      @emit 'SubscriptionDebited', subscription

      callback null, nonce

  fetchSubscriptionsWithPlans: (tags, callback) ->
    [callback, tags] = [tags, callback]  unless callback

    KD.whoami().fetchPlansAndSubscriptions tags, (err, plansAndSubs) =>
      return callback err  if err
      
      { subscriptions } = @groupPlansBySubscription plansAndSubs

      callback null, subscriptions

  groupPlansBySubscription: (plansAndSubscriptions = {}) ->
    
    { plans, subscriptions } = plansAndSubscriptions
