 
   confirmPayment: ({ type, planCode, accountCode }, callback = (->)) ->
     getGroup().canCreateVM { type, planCode }, (err, status) =>
-      @getSubscription type, planCode, (subscription) =>
+      @fetchSubscription type, planCode, (subscription) =>
         cb = (needBilling, balance, amount) =>
           debugger
           # @createPaymentConfirmationModal {

      return callback err  if err
      @emit 'PaymentDataChanged'

  getSubscription: do ->
    findActiveSubscription = (subs, planCode, callback) ->
      subs.reverse().forEach (sub) ->
        if sub.planCode is planCode and sub.status in ['canceled', 'active']


      callback 'none'

    fetchSubscription = (type, planCode, callback) ->
      { JPaymentSubscription } = KD.remote.api

      if type is 'group'
