
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
trustpayway-sdk
Advanced tools
Official Node.js SDK for interacting with TrustPayWay API (MTN, Orange, etc.)
A simple, lightweight Node.js SDK for interacting with the TrustPayWay mobile payment API. Supports MTN, Orange, and others.
Built with TypeScript. Usable in both TypeScript and plain JavaScript projects.
npm install trustpayway-sdk
import { TrustPayWay } from 'trustpayway-sdk';
const tpw = new TrustPayWay({
baseUrl: 'https://mobilewallet.trustpayway.com',//https://test.trustpayway.com (for testing purposes)
appToken: 'your-app-token',
authToken: 'your-bearer-token',
network: 'orange', // or 'mtn'
});
async function run() {
const result = await tpw.processPayment({
amount: '100',
currency: 'XAF',
phone: '237600000000',
description: 'Invoice #123',
orderId: 'TPW-123',
notifUrl: 'https://webhook.site/your-webhook',
});
console.log('Transaction Response:', result);
}
const { TrustPayWay } = require('trustpayway-sdk');
const tpw = new TrustPayWay({
baseUrl: 'https://mobilewallet.trustpayway.com',//https://test.trustpayway.com (for testing purposes)
appToken: 'your-app-token',
authToken: 'your-bearer-token',
network: 'mtn', // or 'orange'
});
async function run() {
try {
const result = await tpw.processPayment({
amount: '100',
currency: 'XAF',
phone: '237600000000',
description: 'Invoice #123',
orderId: 'TPW-123',
notifUrl: 'https://webhook.site/your-webhook',
});
console.log('Transaction Response:', result);
} catch (error) {
console.error('Payment Failed:', error);
}
}
run();
new TrustPayWay(config)Create a new SDK instance.
Parameters:
baseUrl (string): API base URL (e.g. https://mobilewallet.trustpayway.com)appToken (string): Your application token from TrustPayWayauthToken (string): Authorization token (Bearer)network (string): 'mtn' or 'orange'getToken(): Promise<string>Fetches a session token from TrustPayWay. Automatically called before processPayment() or checkPaymentStatus() if not already set.
processPayment(params): Promise<object>Initiates a payment via mobile money.
Params:
amount (string): Amount to chargecurrency (string): e.g. 'XAF'phone (string): Receiver phone (with country code)description (string): Description for the transaction example Your APP NameorderId (string): Unique order identifiernotifUrl (string): Callback URL for status updatescheckPaymentStatus({ transactionId }): Promise<object>Checks the status of a transaction.
Params:
transactionId (string): The transaction ID returned by processPaymentMIT
FAQs
Official Node.js SDK for interacting with TrustPayWay API (MTN, Orange, etc.)
The npm package trustpayway-sdk receives a total of 0 weekly downloads. As such, trustpayway-sdk popularity was classified as not popular.
We found that trustpayway-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.