       forms                     :
         'Billing Info'          :
           fields                : fields
-          callback              : callback
+          callback              : (formData) =>
+            @emit 'PaymentInfoSubmitted', formData
           buttons               :
             Save                :
               title             : 'Save'

class BillingFormModal extends KDModalViewWithForms

  constructor:(options={}, data)->

    options.title    or= 'Billing information'
    options.width    or= 520
    options.height   or= 'auto'
    options.cssClass or= 'payments-modal'
    options.overlay   ?= yes

    { callback } = options
    delete options.callback

    callback ?= (formData) => @emit 'PaymentInfoSubmitted', formData

    thisYear = (new Date).getFullYear()


    @billingForm.fields.cardNumber.addSubView @icon = new KDCustomHTMLView
      tagName  : 'span'
      cssClass : 'icon'

    @billingForm.fields.country.addSubView @countryLoader

