Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

balanced-official

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

balanced-official

Official Balanced Payments API Client for node.js, https://www.balancedpayments.com/docs/api

  • 1.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
166
decreased by-37.36%
Maintainers
3
Weekly downloads
 
Created
Source

Balanced Node.js library

Build Status

The official Node.js library for Balanced Payments.

The Balanced Payments API located here: https://www.balancedpayments.com/docs/api.

v1.x requires Balanced API 1.1.

Installation

The preferred way to install balanced for Node.js is to use the npm package manager for Node.js. Simply type the following into a terminal window:

npm install balanced-official

Basic Usage

var balanced = require('balanced-official');

balanced.configure('api-secret-key');

var customer = balanced.marketplace.customers.create();

var card = balanced.marketplace.cards.create({
	'number': '4111111111111111',
	'expiration_year': '2016',
	'expiration_month': '12',
	 'cvv': '123'
});

card.associate_to_customer(customer)
	.debit(5000)
	.then(function (debit) {
		// save the result of the debit
	}, function (err) {
		// record the error message
	});;

More examples

Testing

To run the tests in a terminal run

npm test

To run a specific test, you can do

node test/test.js [test name]

Keywords

FAQs

Package last updated on 19 Dec 2014

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