Created
April 24, 2017 23:17
-
-
Save crystalschang/23b7650abb3a5ef388a324a627a0060a to your computer and use it in GitHub Desktop.
Stripe charge example
This file contains hidden or 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
var charge = stripe.charges.create({ | |
amount: 1000, | |
currency: "usd", | |
description: "Example charge", | |
source: 'tok_visa', | |
application_fee: 200, | |
stripe_account: 'acct_xyz' | |
}, function(err, charge) { | |
console.log(err, charge); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment