Skip to content

Instantly share code, notes, and snippets.

@andrewpthorp
Created January 10, 2014 18:04
Show Gist options
  • Save andrewpthorp/8359371 to your computer and use it in GitHub Desktop.
Save andrewpthorp/8359371 to your computer and use it in GitHub Desktop.
Stripe Node Callback
stripe.charges.create(obj, function(err, data){
if (err) {
// an error occurred
} else {
// access data here, because it was a successful response
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment