
Research
/Security News
PolinRider Spreads Through Compromised GitHub Accounts and Packagist
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.
itransact-node
Advanced tools
As a quick helper for our NodeJS community to get up and running even faster in your favorite dependency manager, we have created this API / SDK wrapper specifically tailored for NodeJS and Express.
More details at iTransact Developer API
If there is a platform you would like to see in addition to npm for dependency management, let us know.
Run the following command at the root fo your project
npm install itransact-node
Download the zip, or use git submodules to pull the SDK into your project.
Here is an example implementation:
(see /examples for more)
"use strict";
const itransact = require('itransact-core');
// Store these somewhere safe.
const api_username = 'test_username';
const api_key = 'test_apikey';
// You can use your own JSON Model, or use the included models.
const cardData = new itransact.cardDataModel();
cardData.name = 'Greg';
cardData.number = '4111111111111111';
cardData.cvv = '123';
cardData.exp_month = '11';
cardData.exp_year = '2020';
const payload = new itransact.transactionPostPayloadModel();
payload.amount = '1000';
payload.card = cardData;
let fooCallback = function (response) {
// Do something with response here
};
itransact.postCardTransaction(payload, api_username, api_key, fooCallback);
"use strict";
const itransact = require('itransact-core');
// Store this somewhere safe.
const api_key = 'test_apikey';
// You can use your own JSON Model, or use the included models.
const payload = {
amount: '1000',
card:{
name: 'Greg',
number: '4111111111111111',
cvv: '123',
exp_month: '11',
exp_year: '2020'
}
};
// IF you want to just sign the payload
let payloadSignature = itransact.signPayload(api_key, payload);
Note - expected signature changes every time the api_username, api_key, and payload changes in any way. It is only included here for testing.
Example successful postResult using the example above will return a 201 with the following fields / value types:
{
"id": "string",
"amount": 0,
"status": "string",
"settled": "string",
"instrument": "string",
"metadata": [
{
"key": "string",
"value": "string"
}
],
"payment_source": {
"name": "string",
"default": "string",
"type": "string",
"expired": "string",
"month": "string",
"year": "string",
"brand": "string",
"last_four_digits": "string",
"sec_code": "string"
},
"credits": {
"amount": 0,
"state": "string"
},
"credited_amount": "string"
}
Check out the files in /examples for other ideas for implementation.
Unit tests on this project are run using Mocha. You can find each test in the /test folder.
After doing an npm install mocha, and chai will be available to run using the following command.
./node_modules/.bin/mocha --reporter spec
FAQs
This is an SDK for authenticating with iTransact's API
The npm package itransact-node receives a total of 13 weekly downloads. As such, itransact-node popularity was classified as not popular.
We found that itransact-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.

Company News
Allow myself to introduce... myself.