Socket
Socket
Sign inDemoInstall

cheddargetter

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cheddargetter

Wrapper for the CheddarGetter recurring billing system APIs


Version published
Weekly downloads
2
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

Goals and Status

This module will simplify the process of integrating CheddarGetter into your existing node.js apps.

As of version 0.1.4 the module implements the fallowing API calls:

  • getAllPricingPlans(callback)
  • getPricingPlan(planCode, callback)
  • getAllCustomers([searchParams], callback)
  • getCustomer(customerCode, callback)
  • createCustomer(customerData, callback)
  • editCustomerAndSubscription(customerData, callback) or updateCustomerAndSubscription(customerData, callback)
  • editCustomer(customerCode, customerData, callback) or updateCustomer(customerCode, customerData, callback)
  • editSubscription(customerCode, customerData, callback) or updateSubscription(customerCode, customerData, callback)
  • deleteCustomer(customerCode, callback)
  • cancelSubscription(customerCode, callback)
  • addItem(customerCode, itemCode, [amount], callback)
  • removeItem(customerCode, itemCode, [amount], callback)
  • setItemQuantity(customerCode, itemCode, amount, callback)
  • addCustomCharge(customerCode, chargeCode, quantity, amount, description, callback)
  • deleteCustomCharge(customerCode, chargeId, callback)

All callbacks are called with error and results parameters.

Not all API calls have been fully tested and many unit tests are still missing.

Install

npm install cheddargetter

Usage

var CheddarGetter = require("CheddarGetter");
	
var cg = new CheddarGetter("test@test.com", "TestPass", "ProdCode");
	
cg.getAllPricingPlans(function (err, results) {
	console.log(err, results);
});

Tests

node test

FAQs

Package last updated on 20 May 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc