Stripe.publishableKey = "pk_qXS4zGO6BmF9SAwh9Nr63AONMH0qU"
var card = { number: "4242424242424242" ,exp_month: 8 ,exp_year: 2015 ,cvc: '111' }
Stripe.createToken(card, function(status, response) {
if (status === 200)
alert('Use this token to create a charge: ' + response.id);
else
alert('Error creating token: ' + respon
Source: pastebin.com/raw.php?i=03VDGWaP