Created
January 10, 2014 18:04
-
-
Save andrewpthorp/8359371 to your computer and use it in GitHub Desktop.
Stripe Node Callback
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
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