JS client for browser to perform mobile payment operation with MeSomb
npm install @hachther/mesomb-browser> JavaScript client for mobile payment (Orange Money, Mobile Money ...) with MeSomb services.
>
> You can check the full documentation of the api here
``sh`
yarn add @hachther/mesomb-browseror
npm install @hachther/mesomb-browser
Check the full documentation here
Below some quick examples
ES6 import
`JavaScript
import {PaymentOperation, RandomGenerator} from '@hachther/mesomb-browser';
const payment = new PaymentOperation({applicationKey: '
const response = await payment.makeCollect({amount: 100, service: 'MTN', payer: '670000000', nonce: RandomGenerator.nonce()});
console.log(response.isOperationSuccess());
console.log(response.isTransactionSuccess());
`
Modular include
`JavaScript
const {PaymentOperation, RandomGenerator} = require('@hachther/mesomb-browser');
const payment = new PaymentOperation({applicationKey: '
const response = await payment.makeCollect({amount: 100, service: 'MTN', payer: '670000000', nonce: RandomGenerator.nonce()});
console.log(response.isOperationSuccess());
console.log(response.isTransactionSuccess());
`
ES6 import
`JavaScript
import {PaymentOperation, RandomGenerator} from '@hachther/mesomb-browser';
const payment = new PaymentOperation({applicationKey: '
const response = await payment.makeDeposit({amount: 100, service: 'MTN', receiver: '670000000', nonce: RandomGenerator.nonce()});
console.log(response.isOperationSuccess());
console.log(response.isTransactionSuccess());
`
Modular include
`JavaScript
const {PaymentOperation, RandomGenerator} = require('@hachther/mesomb-browser');
const payment = new PaymentOperation({applicationKey: '
const response = await payment.makeDeposit({amount: 100, service: 'MTN', receiver: '670000000', nonce: RandomGenerator.nonce()});
console.log(response.isOperationSuccess());
console.log(response.isTransactionSuccess());
`
ES6 import
`JavaScript
import {PaymentOperation, Signature} from '@hachther/mesomb-browser';
const payment = new PaymentOperation({applicationKey: '
const application = await payment.getStatus();
console.log(application);
`
Modular include
`JavaScript
const {PaymentOperation, Signature} = require('@hachther/mesomb-browser');
const payment = new PaymentOperation({applicationKey: '
const application = await payment.getStatus();
console.log(application);
`
ES6 import
`JavaScript
import {PaymentOperation, Signature} from '@hachther/mesomb-browser';
const payment = new PaymentOperation({applicationKey: '
const transactions = await payment.getTransactions(['ID1', 'ID2']);
console.log(transactions);
`
Modular include
`JavaScript
const {PaymentOperation, Signature} = require('@hachther/mesomb-browser');
const payment = new PaymentOperation({applicationKey: '
const transactions = await payment.getTransactions(['ID1', 'ID2']);
console.log(transactions);
``
š¤ Hachther LLC
* Website: https://www.hachther.com
* Twitter: @hachther
* Github: @hachther
* LinkedIn: @hachther
Give a āļø if this project helped you!