Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
balanced-node-new
Advanced tools
Offical Balanced Payments API Client for node.js, https://www.balancedpayments.com/docs/api
The official Node.js library for Balanced Payments. Written by uh-sem-blee, Co.
The Balanced Payments API located here: https://www.balancedpayments.com/docs/api.
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-node-new
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
var balanced = require('balanced-node-new');
balanced.init("API_SECRET", "MARKETPLACE_URI");
// Create a credit card
balanced.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
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.
balanced.customer.create({ name: "Valued Customer" }, function (err, newCustomer) {
if (err) {
console.error("customer.create", err);
throw err;
}
});
Which now allows us to do:
balanced.customer.add_bank(newCustomer.uri, {
bank_account_uri: <bank_account_uri>
}, function(err, response){ ... })
In this API call we use the customer's URI as the request path and a JSON packet of required data.
FAQs
This package is no longer supported and has been deprecated. To avoid malicious use, npm is hanging on to the package name.
The npm package balanced-node-new receives a total of 3 weekly downloads. As such, balanced-node-new popularity was classified as not popular.
We found that balanced-node-new demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.