
Research
wget to Wipeout: Malicious Go Modules Fetch Destructive Payload
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
bkash-payment-api
Advanced tools
Nodejs library to accept bkash payments on your backend application. BKASH API WRAPPER
Nodejs library to accept bkash payments on your backend application. BKASH API WRAPPER
vscode
vscode
30 seconds
and get an error so that you can query the paymentin progress
npm
npm install bkash-payment-api
yarn
yarn add bkash-payment-api
**You need Bkash Merchant or Retails account to use this library
Select Application Platform: select all ✔
baseUrl is
https://checkout.sandbox.bka.sh/v1.2.0-beta
for sandbox baseUrl ishttps://tokenized.pay.bka.sh/v1.2.0-beta
for production
- Create a payment
- get the response and enter that in
Create Payment Sandbox Test
also get thepaymentID
from response- Execute a payment with the
paymentID
and enter the response inExecute Payment Sandbox Test
- Submit and You got your Live Credentials
javascript
file
bkash.js
const { BkashGateway } = require('bkash-payment-api');
const bkashConfig = {
baseURL: 'https://checkout.sandbox.bka.sh/v1.2.0-beta', //do not add a trailing slash
key: 'abcdxxx2369',
username: 'bkashTest',
password: 'bkashPassword1',
secret: 'bkashSup3rS3cRet',
};
const bkash = new BkashGateway(config);
module.exports = bkash;
typescript
file
bkash.ts
import { BkashGateway IBkashConstructor } from 'bkash-payment-api';
const bkashConfig: IBkashConstructor = {
//get intellisense here
baseURL: 'https://checkout.sandbox.bka.sh/v1.2.0-beta', //do not add a trailing slash
key: 'abcdxx2369',
username: 'bkashTest',
password: 'bkashPassword1',
secret: 'bkashSup3rS3cRet',
};
const bkash = new BkashGateway(config);
export default bkash;
const paymentRequest = {
amount: 1000,
orderID: 'ORD1020069',
intent: 'sale',
callBack: 'https://example.com/bkash/callback',
};
const result = await bkash.createPayment(paymentRequest);
console.log(result);
const paymentId = createPaymentRequest.paymentID; // sample payment ID
const result = await bkash.executePayment(paymentId);
const paymentId = createPaymentRequest.paymentID; // sample payment ID
const result = await bkash.queryPayment(paymentId);
const result = await bkash.searchTransaction('TRX22347463XX');
Not Working Right Now
const refundTransactionData = {
paymentID: '22423169',
amount: '25.69', //do not add more than two decimal points
trxID: 'TRX22347463XX';
sku: 'SK256519';
}
const result = await bkash.refundTransaction(refundTransactionData);
Not Working Right Now
const result = await bkash.refundStatus('TRX22347463XX', '12437969');
issues
or pull request
for any issues and bugfixesproject
section of the github repositoryMIT
DISCLAIMER: This software comes with absolutely no warranty and is not affiliated with the company
Bkash
in any way. Use at your own risk. Author and Contributors are not responsible for any financial damages, outages etc.
Continue By Siyam Hosan Created by Shahriar Shojib
FAQs
Nodejs library to accept bkash payments on your backend application. BKASH API WRAPPER
The npm package bkash-payment-api receives a total of 8 weekly downloads. As such, bkash-payment-api popularity was classified as not popular.
We found that bkash-payment-api 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
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.
Product
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.