       JPaymentPlan.getUserBalance callback
     else
       JPaymentPlan.getGroupBalance callback
-
-  updateCreditCard: (type, callback = (->)) ->
-
-    { JPaymentPlan } = KD.remote.api
-
-    @updateCreditCardModal {}, (newData) =>
-      @modal.buttons.Save.hideLoader()
-      if type in ['group', 'expensed']
-        getGroup().setBillingInfo newData, callback
-      else
-        JPaymentPlan.setUserAccount newData, callback
 
 
   removePaymentMethod: (accountCode, callback) ->


  # views

  updateCreditCardModal: (data, callback) ->
    @modal = new PaymentFormModal { callback }

    form = @modal.modalTabs.forms['Billing Info']
    form.inputs[k]?.setValue v  for k, v of data

    @modal.on 'KDObjectWillBeDestroyed', => delete @modal
    return @modal

  fetchBillingInfo: (type, callback) ->

    { JPaymentPlan } = KD.remote.api


    { JPayment } = KD.remote.api

    JPayment.setBillingInfo billingInfo, callback


  createBillingInfoModal:(type, billingInfo) ->
