Skip to content

hunterclarke/node-evented-stripe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Evented Stripe For Node.js

This is a basic Node.js library that offers evented endpoints to the Stripe API.

export STRIPE_KEY=<<stripe api key here>>
npm install
node example/app

How to Use

var stripe_api = require('lib/main.js');
var stripe = new stripe_api(process.env.STRIPE_KEY);

Convention for calling api:

stripe.RESOURCE.VERB()

stripe.charges.create({...});

Convention for listening for a response:

stripe.on('VERB_RESOURCE', function(data) {....});

stripe.on('create_charge', function(data) {....});

About

An event emitter based Stripe API wrapper for Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors