
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
JAVASCRIPT
require("dotenv").config();
const { MVolaMarchantPayAPI } = require("mvola-api");
const { v4 } = require("uuid");
const consumerKey = process.env.CONSUMER_KEY || "";
const consumerSecret = process.env.CONSUMER_SECRET || "";
const mvolaApi = new MVolaMarchantPayAPI();
// set token directly
// mvolaApi.setAccessToken(access_token);
// if you need to revoke token
mvolaApi.revokeToken(consumerKey, consumerSecret, true).then(() => {
// init transaction config
mvolaApi.initConfig({
version: "1.0",
xCorrelationID: v4(),
userLanguage: "MG",
userAccountIdentifier: "msisdn;034350003",
partnerName: "Mvola API",
});
const trans = {
amount: 500,
currency: "Ar",
descriptionText: "Description",
requestDate: new Date().toISOString(),
debitParty: [
{
key: "msisdn",
value: "034350003",
},
],
creditParty: [
{
key: "msisdn",
value: "034350003",
},
],
metadata: [
{
key: "partnerName",
value: "Mvola API",
},
{
key: "fc",
value: "USD",
},
{
key: "amountFc",
value: "1",
},
],
requestingOrganisationTransactionReference: v4(),
originalTransactionReference: v4(),
};
mvolaApi.initiateTranscation(trans).then((result) => {
console.log(result);
});
});
TYPESCRIPT
import { MVolaMarchantPayAPI, MvolaTransactionData } from "mvola-api";
import { v4 } from "uuid";
require('dotenv').config()
async function app() {
const consumerKey = process.env.CONSUMER_KEY || '';
const consumerSecret = process.env.CONSUMER_SECRET || '';
const mvolaApi = new MVolaMarchantPayAPI();
// mvolaApi.setAccessToken(access_token);
await mvolaApi.revokeToken(consumerKey, consumerSecret, true);
mvolaApi.initConfig({
version: "1.0",
xCorrelationID: v4(),
userLanguage: "MG",
userAccountIdentifier: "msisdn;034350003",
partnerName: "Mvola API",
});
const transaction: MvolaTransactionData = {
amount: 500,
currency: "Ar",
descriptionText: "Description",
requestDate: new Date().toISOString(),
debitParty: [
{
key: "msisdn",
value: "034350003",
},
],
creditParty: [
{
key: "msisdn",
value: "034350003",
},
],
metadata: [
{
key: "partnerName",
value: "Mvola API",
},
{
key: "fc",
value: "USD",
},
{
key: "amountFc",
value: "1",
},
],
requestingOrganisationTransactionReference: v4(),
originalTransactionReference: v4(),
};
const result = await mvolaApi.initiateTranscation(transaction);
return result
}
app().then(result => console.log(result));
FAQs
**JAVASCRIPT** ```js
The npm package mvola-api receives a total of 2 weekly downloads. As such, mvola-api popularity was classified as not popular.
We found that mvola-api demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.