
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
paymentrails
Advanced tools
Trolley's now DEPRECATED JavaScript SDK. New package: trolleyhq # New SDK available at : https://www.npmjs.com/package/trolleyhq
Trolley's now DEPRECATED JavaScript SDK. New package: trolleyhq
Update notification and details: https://trolley.com/updates/eol-paymentrails-sdks/
For more information about the API as well as NodeJS code samples check out the full API documentation
npm install --save paymentrails
The Trolley API is built using promises and all methods except connect will return a promise. The connect call allows you to setup your API Key and Secret with a client that can be used for subsequent calls.
// A simple application using the Trolley/Payment Rails SDK
const trolley = require('paymentrails');
const client = trolley.connect({
key: "YOUR-API-KEY",
secret: "YOUR-API-SECRET",
environment: "production",
});
// Async/Await version
async function main() {
const recipient = await client.recipient.find("R-G7SXXpm6cs4aTUd9YhmgWC");
console.log(recipient.id);
}
main();
// Promise version
client.recipient.find("R-G7SXXpm6cs4aTUd9YhmgWC").then(recipient => {
console.log(recipient.id);
}).catch(err => {
console.log("ERROR", err);
});
Methods should all have JSDoc comments to help you understand their usage. As mentioned the full API documentation is the best source of information about the API.
For more information please read the JavaScript API docs is available. The best starting point is:
Data Type | SDK Documentation |
---|---|
Batch | API Docs for Batch |
Payment | API Docs for Payment |
Recipient | API Docs for Recipient |
Recipient Account | API Docs for Recipient Account |
If you're working on the library itself, here's easy way to run the tests.
// if not already, copy the example env file to create an env file
$ cp .env.test .env
// Set access key and secret in the env file
TROLLEY_ENVIRONMENT="production"
TROLLEY_ACCESS_KEY="ACCESS_KEY"
TROLLEY_SECRET_KEY="SECRET_KEY"
//Run the fixture based tests
$ npm test
Payment Rails is now Trolley. We're in the process of updating our SDKs to support the new domain. In this transition phase, you might still see "PaymentRails" at some places. ↩
FAQs
Trolley's now DEPRECATED JavaScript SDK. New package: trolleyhq # New SDK available at : https://www.npmjs.com/package/trolleyhq
The npm package paymentrails receives a total of 193 weekly downloads. As such, paymentrails popularity was classified as not popular.
We found that paymentrails demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.