Skip to content

Instantly share code, notes, and snippets.

@peterj
Created November 20, 2017 00:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterj/0178027224ee1953d7b1dab597665af1 to your computer and use it in GitHub Desktop.
Save peterj/0178027224ee1953d7b1dab597665af1 to your computer and use it in GitHub Desktop.
const stripe = require('stripe')('sk_STRIPE_KEY');
stripe.charges.create({
description: 'charge description',
source: 'token_id',
currency: 'USD',
amount: 999
}, (err, res) => {
// send success/error response back
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment