churnbee

    0.1.1 • Public • Published

    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.

    Install

    npm i churnbee

    DownloadsWeekly Downloads

    0

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • jeduan