shahriar-shojib / nagad-payment-gateway Goto Github PK
View Code? Open in Web Editor NEWNode.js Library for accepting payments from Nagad
License: MIT License
Node.js Library for accepting payments from Nagad
License: MIT License
i am getting this erro -
error me TypeError: NagadGateway is not a constructor
I get this error when I tried to implement the project as per your instruction on the readme.
Geting error: NagadException: Please verify provided data and try again. Call 16167 for help.
My Credential is Live
Using Base URL: https://api.mynagad.com
I think there have a problem in src/index
getTimeStamp() month if October should return 10 but it's return 9. Please fix it.
After giving all the keys it is showing this error -
Error: error:09091064:PEM routines:PEM_read_bio_ex:bad base64 decode
at Object. (internal/crypto/cipher.js:63:12)
at NagadGateway.encrypt (J:\nagad\node_modules\nagad-payment-gateway\dist\index.js:52:41)
at NagadGateway.createPayment (J:\nagad\node_modules\nagad-payment-gateway\dist\index.js:140:33)
at J:\nagad\index.js:16:32
at Object. (J:\nagad\index.js:28:3)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) {
library: 'PEM routines',
function: 'PEM_read_bio_ex',
reason: 'bad base64 decode',
code: 'ERR_OSSL_PEM_BAD_BASE64_DECODE'
Searching Nagad's website and googling did no help. I could not their official API doc so where can I get the private, public key and base URL, etc.
We are badly in need of Rocket payment gateway
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.