Trying to save a customer using Stripe.js
<p>I'm trying to create a customer and associate a token id with it using stripe.js. Till now I have created a stripe token using the following code: </p>

<pre><code> Stripe.card.createToken({
                number: $('#cc-number').val(),
                cvc: $('#cc-cvc').val(),
                exp_month: $('#cc-exp').val().substr(0, 2),
                exp_year: $('#cc-exp').val().substr(3, 2),
                name: $('#cc-name').val()
            }, stripeResponseHandler);
</code></pre>

<p>Once I get the response from stripe, I want to store the credit card and associate it with a customer. Maybe use something like this: </p>

<pre><code>stripeResponseHandler = function (status, response) {
    Stripe.customers.create({
                    description: 'Testing',
                    source: response.id 
                });
}
</code></pre>

<p>But this is not working, I keep getting the error "Uncaught typeError: undefined "create" . What am I missing here? Any help appreciated. </p>