   policyViewAdded: (pane, view) ->
 
   paymentViewAdded: (pane, view) ->
+
     paymentController = KD.getSingleton 'paymentController'
 
     group = @getData()
 
     group.fetchPaymentMethod (err, paymentMethod) ->
-      console.log { err, paymentMethod }
-    # paymentController.fetchBillingInfo 'group', (err, billingInfo) =>
-      view.setBillingInfo paymentMethod
+      return new KDNotificationView title: err.message  if err
+
+      view.setBillingInfo paymentMethod  if paymentMethod
 
     @paymentView = view
 


  createBillingInfoModal: ->

    paymentController = KD.getSingleton "paymentController"

    billingInfoModal = paymentController.createBillingInfoModal 'group', {}

    paymentController.fetchBillingInfo 'group', (err, groupBillingInfo) ->

      if groupBillingInfo
        billingInfoModal.setBillingInfo groupBillingInfo

      else
        paymentController.fetchBillingInfo 'user', (err, personalBillingInfo) ->

          if personalBillingInfo
            { billing } = personalBillingInfo

            useExistingModal = new KDModalView
              title: 'Would you like to link an existing payment method?'

                  style       : 'modal-cancel'
                  callback    : -> useExistingModal.destroy()


            personalBillingMethods.forEach ({ accountCode, billing }) ->

              billingMethodView = new BillingMethodView {}, billing
              useExistingModal.addSubView billingMethodView
              destroy = useExistingModal.bound 'destroy'
              billingInfoModal.on 'KDObjectWillBeDestroyed', destroy

              billingMethodView.on 'BillingEditRequested', ->
                console.log { accountCode }
                # group.addPaymentMethod


    return billingInfoModal
