     @billingForm.fields.cardNumber.addSubView @icon = new KDCustomHTMLView
       tagName  : 'span'
       cssClass : 'icon'
-
-    @billingForm.addCustomData 'actualState', data.state
 
     @billingForm.fields.country.addSubView @countryLoader
 

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()


  setBillingInfo: (billingInfo) ->
    for own key, value of billingInfo
      switch key
        when 'state'
          @billingForm.addCustomData 'actualState', value
        when 'cardType'
          @updateCardTypeDisplay value
        when 'cardNumber', 'cardCV'
          @billingForm.inputs[key]?.setPlaceHolder value
        when 'address2' then # ignore
