Skip to content

Instantly share code, notes, and snippets.

@valachi
Created May 14, 2013 05:52
Show Gist options
  • Save valachi/5573977 to your computer and use it in GitHub Desktop.
Save valachi/5573977 to your computer and use it in GitHub Desktop.
<script>
$(document).ready(function(){
$('#buy-automated').click(function(){
var token = function(res){
console.log('Got token ID:', res.id);
};
StripeCheckout.open({
key: 'pk_Y9MZnemHi4X5Anj423q4m79gfaDqP',
address: true,
amount: 99000,
name: '409A Automated',
description: '409A ',
panelLabel: 'Checkout',
token: token
});
return false;
});
$('#buy-startup').click(function(){
var token = function(res){
console.log('Got token ID:', res.id);
};
StripeCheckout.open({
key: 'pk_Y9MZnemHi4X5Anj423q4m79gfaDqP',
address: true,
amount: 199000,
name: '409A Startup',
description: '409A ',
panelLabel: 'Checkout',
token: token
});
return false;
});
$('#buy-regular').click(function(){
var token = function(res){
console.log('Got token ID:', res.id);
};
StripeCheckout.open({
key: 'pk_KxNs1bx828aFzr5TexzKPIWYg35a8',
address: true,
amount: 299000,
name: '409A Regular',
description: '409A ',
panelLabel: 'Checkout',
token: token
});
return false;
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment