       'confirmForm'
     ]
 
-  hideForms: (forms = @getFormNames()) ->
-    @[form].hide() for form in forms
+  hideForms: (forms = @getFormNames()) -> @[form].hide() for form in forms
 
   setState: (state) ->
     @hideForms()

  processPayment: (formData) ->
    paymentController = KD.getSingleton 'paymentController'

    { type, planInfo: { code: planCode}, billingInfo: { accountCode } } = formData

    options = { type, planCode, accountCode }



    paymentController = KD.getSingleton 'paymentController'

    paymentController.observePaymentSave form, (err, { accountCode }) =>
      @addAggregateData { accountCode }
      @setState 'confirm'

    form
