title: Debugging stripe payments coffeescript
body: <p>I have the following code:</p>
  
  <pre><code>order =
    setupForm: -&gt;
      $('.new_order').submit -&gt;
        $form = $(this)
        $form.find('input[type=submit]').attr('disabled', true)
        order.processCard($form)
        false
  
    processCard: ($form)-&gt;
      card =
        number: $form.find('.card_number').val()
        cvc: $form.find('.card_code').val()
        expMonth: $form.find('.card_month').val()
        expYear: $form.find('.card_year').val()
      Stripe.createToken card, (status, response) -&gt;
        order.handleStripeResponse(status, response, $form)
  
    handleStripeResponse: (status, response, $form) -&gt;
      if status == 200
        $form.find('.order_stripe_card_token').val(response.id)
        $form.submit()
      else
        $form.find('.stripe_error').text(response.error.message)
        $form.find('input[type=submit]').attr('disabled', false)
  </code></pre>
  
  <p>It renders errors perfectly ok (if the card number is wrong/missing etc.), but when I put in the correct card details provided by Stripe, it doesn't submit anything.  </p>
  
  <p>I'm sure it's something very obvious I'm missing, but need some fresh eyes to point out where there error lies.</p>