JavaScript client for mobile payment (Orange Money, Mobile Money ...) with MeSomb services.
You can check the full documentation of the api here
🏠 Homepage
yarn install @hachther/mesomb
Check the full documentation here
Below some quick examples
import {PaymentOperation, Signature} from '@hachther/mesomb';
const payment = new PaymentOperation({applicationKey: '<applicationKey>', accessKey: '<AccessKey>', secretKey: '<SecretKey>'});
const response = await payment.makeCollect(100, 'MTN', '677550203', new Date(), Signature.nonceGenerator());
console.log(response.isOperationSuccess());
console.log(response.isTransactionSuccess());
import {PaymentOperation, Signature} from '@hachther/mesomb';
const payment = new PaymentOperation({applicationKey: '<applicationKey>', accessKey: '<AccessKey>', secretKey: '<SecretKey>'});
const response = await payment.makeDeposit(100, 'MTN', '677550203', new Date(), Signature.nonceGenerator());
console.log(response.isOperationSuccess());
console.log(response.isTransactionSuccess());
import {PaymentOperation, Signature} from '@hachther/mesomb';
const payment = new PaymentOperation({applicationKey: '<applicationKey>', accessKey: '<AccessKey>', secretKey: '<SecretKey>'});
const application = await payment.getStatus();
console.log(application);
import {PaymentOperation, Signature} from '@hachther/mesomb';
const payment = new PaymentOperation({applicationKey: '<applicationKey>', accessKey: '<AccessKey>', secretKey: '<SecretKey>'});
const transactions = await payment.getTransactions(['ID1', 'ID2']);
console.log(transactions);
👤 Hachther LLC contact@hachther.com
- Website: https://www.hachther.com
- Twitter: @hachther
- Github: @hachther
- LinkedIn: @hachther
Give a ⭐️ if this project helped you!