     return @modal
 
   fetchBillingInfo: (type, callback) ->
-    
+
     { JPaymentPlan } = KD.remote.api
 
     switch type

    KD.getSingleton('groupsController').getCurrentGroup()

  getBalance: (type, callback)->
    
    { JPaymentPlan } = KD.remote.api

    if type is 'user'

      return @utils.defer => callback null, @countries, @countryOfIp

    ip = $.cookie 'clientIPAddress'

    JPayment.fetchCountryDataByIp ip, (err, @countries, @countryOfIp) =>
      callback err, @countries, @countryOfIp

