Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

High-level Chargify API binding for node.js

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

charged

A high-level binding to the Chargify API.

Example Usage

var charged = require('charged');

var charge = charged({
  product: 'monthly-chili-cheese-fries',
  key: 'ad3rt4302ebdd'
});

charge.readSubscription('chjj', function(err, result) {
  if (err) throw err;
  console.log(result);
});

var options = { memo: 'bill', amount_in_cents: 100 };
charge.charge('chjj', options, function(err, result) {
  if (err) throw err;
  console.log(result);
});
Something went wrong with that request. Please try again.