balanced-node-new
Advanced tools
Comparing version 0.4.9 to 1.0.0
{ | ||
"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. |
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
0
0
1
0
680
2
0
6
3
- Removedextend@~1.2.0
- Removedextend@1.2.1(transitive)