node-bkash
bKash API client for Browser & Node.js
bKash API docs: https://developer.bka.sh/v1.0.0-beta/reference
Installation
via npm:
$ npm install bkash --save
via yarn:
$ yarn add bkash
Usage
Browser
<script src="https://unpkg.com/bkash/dist/bkash.min.js"></script>
<script>
const bkash = new BKash(clientOptions)
</script>
Node
const BKash = require('bkash')
const clientOptions = {
mode: 'sandbox',
type: 'checkout'
}
const bkash = new BKash(clientOptions)
bkash.queryPayment({
paymentID: '42'
}).then(({ data, error, headers, meta }) => {
}).catch(err => {
})
Authentication
bkash.authenticate({
type: 'simple',
username: '...',
password: '...'
})
bkash.authenticate({
type: 'token',
token: '...',
appkey: '...'
})
Changelog
Changelog for node-bkash
License
Licensed under the MIT License. Check the LICENSE file for details.