New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

balanced-node-new

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

balanced-node-new - npm Package Compare versions

Comparing version 0.4.9 to 1.0.0

37

package.json
{
"name": "balanced-node-new",
"description": "Offical Balanced Payments API Client for node.js, https://www.balancedpayments.com/docs/api",
"version": "0.4.9",
"author": "Balanced Payments / uh-sem-blee, Co. | typefoo",
"contributors": [
"jjosef, john@typefoo.com"
],
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/uh-sem-blee/balanced-node-new.git"
"url": "git+https://github.com/npm/deprecate-holder.git"
},
"keywords": [
"balanced",
"payments"
],
"license": "MIT",
"main": "./lib/balanced.js",
"engines": {
"node": ">= 0.8.0"
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/npm/deprecate-holder/issues"
},
"scripts": {
"test": "node tests/run.js"
},
"devDependencies": {
"mu2": "*",
"async": "~0.2.9"
},
"dependencies": {
"extend": "~1.2.0"
}
"homepage": "https://github.com/npm/deprecate-holder#readme"
}

@@ -1,79 +0,5 @@

Balanced Node.js library
=========
# Deprecated Package
[![Build Status](https://travis-ci.org/balanced/balanced-node.png?branch=master)](https://travis-ci.org/balanced/balanced-node)
This package is no longer supported and has been deprecated. To avoid malicious use, npm is hanging on to the package name.
The official Node.js library for [Balanced Payments](https://www.balancedpayments.com). Written by [uh-sem-blee, Co.](http://www.uh-sem-blee.com)
The Balanced Payments API located here: https://www.balancedpayments.com/docs/api.
Installation
------------
The preferred way to install balanced for Node.js is to use the [npm](http://npmjs.org) package manager for Node.js. Simply type the following
into a terminal window:
```
npm install balanced-node-new
```
Testing
-------
Set up your definitions:
`cp tests/definitions.sample.js tests/definitions.js`
Edit the new definitions.js to contain your API `secret`, `api_verion`, and `marketplace_uri` (although marketplace_uri) is not used yet.
Run the tests:
`node tests/run`
Make your own tests with simple JSON. Place them in `tests/run/*.js`
Basic Usage
-----------
```js
var balanced = require('balanced-node-new');
var b = balanced.init("API_SECRET", "MARKETPLACE_URI");
// Create a credit card
new b.card().create({
card_number: "5105105105105100",
expiration_year: 2020,
expiration_month: 12,
security_code: "123"
}, function (err, object) {
if (err) {
console.error("api.Cards.create", err);
throw err;
}
myCard = object;
console.log("Created new Card:", myCard.uri);
next("api.Cards.create");
});
```
Customers
---------
`Customers` are the best way to manage an entity's bank accounts, cards and transactions
in the Balanced API and supersede the functionality previously provided by Accounts. Customers
were created to simplify merchant underwriting so that you can accept money on a vendors behalf.
```js
new b.customer().create({ name: "Valued Customer" }, function (err, newCustomer) {
if (err) {
console.error("customer.create", err);
throw err;
}
});
```
Which now allows us to do:
```js
new b.customer(newCustomer.uri).add_bank({
bank_account_uri: <bank_account_uri>
}, function(err, response){ ... })
```
In this API call we use the customer's URI on the customer object when calling the `add_bank` method with a JSON packet of required data.
Please contact support@npmjs.com if you have questions about this package.
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