node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org »

churnbee

node-churnbee

Build Status

A simple wrapper for Churnbee

Installation

npm install --save churnbee

Usage

var churnbee = require('churnbee')('CHURNBEE_TOKEN')
churnbee.register('userId'[, callback])
churnbee.charge({userId: 'userId', amount: 1.99, plan: 'Freemium'}[, callback])

Methods

  • register
  • login
  • activation
  • charge. required properties: amount, plan
  • changePlan. required property: plan
  • cancel
  • refund. required property: amount

Properties

On every method if a dateTime property is set to a Date instance, it will be converted.