
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
orchard-api-client
Advanced tools
TypeScript client for appsNmobile Orchard API - Ghana mobile money & payment gateway
TypeScript/JavaScript client for the appsNmobile Orchard API - Ghana's mobile money & payment gateway.
npm install orchard-api-client
import { createOrchardClient } from "orchard-api-client";
const orchard = createOrchardClient({
clientId: "your-client-key",
clientSecret: "your-secret-key",
serviceId: 1234,
});
// Send money
const payment = await orchard.sendMoney({
customer_number: "233241234567",
amount: 50.0,
exttrid: orchard.generateTransactionId(),
reference: "Payment",
nw: "MTN",
callback_url: "https://tuagye.com/callback",
});
// Collect money
const collection = await orchard.collectMoney({
customer_number: "233241234567",
amount: 25.0,
exttrid: orchard.generateTransactionId(),
reference: "Service fee",
nw: "VOD",
callback_url: "https://tuagye.com/callback",
});
// Check balance
const balance = await orchard.checkBalance();
// Send SMS
await orchard.sendSMS({
recipient_number: "233241234567",
msg_body: "Payment successful!",
unique_id: orchard.generateTransactionId(),
sender_id: "tuagye",
});
await orchard.sendMoney({
customer_number: "1234567890",
amount: 100.0,
exttrid: orchard.generateTransactionId(),
reference: "Salary",
nw: "BNK",
bank_code: "UBA",
recipient_name: "John Doe",
callback_url: "https://tuagye.com/callback",
});
try {
const result = await orchard.sendMoney({...});
if (orchard.isTransactionSuccessful(result.resp_code)) {
console.log('Success:', result);
} else {
console.log('Failed:', result.resp_desc);
}
} catch (error) {
console.error('Error:', error);
}
For complete API documentation, visit: https://docs.anmgw.com/docs-page.html
MIT
FAQs
TypeScript client for appsNmobile Orchard API - Ghana mobile money & payment gateway
The npm package orchard-api-client receives a total of 12 weekly downloads. As such, orchard-api-client popularity was classified as not popular.
We found that orchard-api-client 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.