Created
November 20, 2017 00:28
-
-
Save peterj/0178027224ee1953d7b1dab597665af1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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