
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.
wayu-js-sdk
Advanced tools
The official Wayu Pay JavaScript SDK for accepting payments in Venezuela (Pago Móvil, C2P). Generate payment links, verify webhooks, multi-merchant.
The official Wayu Pay JavaScript SDK for accepting payments in Venezuela (Pago Móvil and C2P). Generate payment links, receive webhook notifications, and manage multi-merchant payments.
Wayu Pay lets you accept payments in Venezuela with a simple API. This SDK handles authentication (HMAC-SHA256 signatures), payment link generation, and webhook signature verification.
npm install wayu-js-sdk
# or
yarn add wayu-js-sdk
# or
pnpm add wayu-js-sdk
// CommonJS
const WayuPay = require('wayu-js-sdk');
// ESM
import WayuPay from 'wayu-js-sdk';
const wayu = new WayuPay({
publicKey: 'pk_sbox_...',
secretKey: 'sk_sbox_...',
});
// Optional: use sandbox explicitly or override base URL
const wayuProd = new WayuPay({
publicKey: 'pk_live_...',
secretKey: 'sk_live_...',
sandbox: false, // or baseUrl: 'https://services-wayu-checkout-production.up.railway.app'
});
const result = await wayu.checkout.generatePaymentUrl({
amount: { value: 25.0, currency: 'USD' },
product_name: 'Plan Pro',
product_description: 'Suscripción mensual',
});
// Save the transactionId in your system
await saveTransaction(result.transactionId);
// Redirect the user to checkout
// window.location.href = result.generatePaymentLink;
console.log(result.generatePaymentLink);
console.log(result.transactionId);
const result = await wayu.checkout.generatePaymentUrl({
amount: { value: 50.0, currency: 'USD' },
product_name: 'Producto del Merchant',
product_description: 'El pago va directo al merchant',
merchant_id: 'merch_001',
});
The SDK supports two header schemes for backward compatibility:
HMAC-SHA256(JSON.stringify(payload), webhookSecret)HMAC-SHA256(timestamp:payload_json_sorted, webhookSecret)app.post('/api/webhooks/wayu', (req, res) => {
const isValid = wayu.validateWebhook(
req.headers,
req.body,
process.env.WAYU_WEBHOOK_SECRET
);
if (!isValid) {
return res.status(401).json({ error: 'Invalid signature' });
}
const { event, transactionId, data } = req.body;
switch (event) {
case 'payment.completed':
// Update transaction status in your database
break;
case 'payment.failed':
// Notify user of failure
break;
case 'payment.expired':
break;
case 'payment.refunded':
break;
}
res.status(200).json({ received: true });
});
| Event | Description |
|---|---|
payment.completed | Payment was successful |
payment.failed | Payment failed |
payment.expired | Payment link expired |
payment.refunded | Payment was refunded |
new WayuPay(config)Creates a new Wayu Pay client.
config.publicKey (string, required): Your public API keyconfig.secretKey (string, required): Your secret API keyconfig.baseUrl (string, optional): Override the API base URLconfig.sandbox (boolean, optional): Use sandbox environment (auto-detected from pk_sbox prefix if not set)wayu.checkout.generatePaymentUrl(params)Generates a payment link.
params.amount (object, required): { value: number, currency: 'USD' | 'VES' }params.product_name (string, required): Product nameparams.product_description (string, optional): Product descriptionparams.merchant_id (string, optional): Merchant ID for multi-merchantReturns: Promise<{ generatePaymentLink: string, transactionId: string }>
wayu.validateWebhook(headers, body, webhookSecret)Validates a webhook request signature. Supports X-Webhook-Signature and x-signature headers.
Returns: boolean
wayu.generateSignature()Generates HMAC-SHA256 signature for API requests (used internally).
Returns: { signature: string, timestamp: string }
pk_sbox and sk_sbox.FAQs
The official Wayu Pay JavaScript SDK for accepting payments in Venezuela (Pago Móvil, C2P). Generate payment links, verify webhooks, multi-merchant.
We found that wayu-js-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.