 
         reload()
 
-      # view.on "#{category}CreateRequested", (productData) ->
-
-      view.on "#{category}DeleteRequested", (code) ->
-        confirmDelete -> konstructor.removeByCode code, handleResponse
+      view.on "#{category}DeleteRequested", (data) ->
+        confirmDelete data, ->
+          konstructor.removeByCode data.planCode, handleResponse
 
       view.on "#{category}EditRequested", (data) ->
         options = getProductFormOptions category

      switch category

        when 'Product'
          productType     : 'product'
          isRecurOptional : yes
          showOverage     : yes
          showSoldAlone   : yes

        when 'Plan'
          productType     : 'plan'
          isRecurOptional : no
          showOverage     : no
          showSoldAlone   : no
          placeholders    :
            title         : 'e.g. "Gold Plan"'
            description   : 'e.g. "2 VMs, and a tee shirt"'

    getConstructor = (category) ->
      KD.remote.api["JPayment#{ category.capitalize() }"]


  productViewAdded: do ->

    confirmDelete = (data, callback) ->

      productViewOptions =
        tagName   : 'div'
        cssClass  : 'modalformline'

      modal = KDModalView.confirm
        title       : "Warning"
        description : "Are you sure you want to delete this item?"
        subView     : new GroupProductView productViewOptions, data
        ok          :
          title     : "Remove"
          callback  : ->
            modal.destroy()
            callback()

    showCreateModal = (options, data, callback) ->
      productType = options.productType ? 'product'
