siamak / zarinpal-checkout Goto Github PK
View Code? Open in Web Editor NEW☼ Simple implementation of ZarinPal JavaScript.
Home Page: http://zarinpal.com
License: MIT License
☼ Simple implementation of ZarinPal JavaScript.
Home Page: http://zarinpal.com
License: MIT License
node_modules/request
request-promise >=0.0.2
Depends on vulnerable versions of request
node_modules/zarinpal-checkout/node_modules/request-promise
zarinpal-checkout >=0.1.3
Depends on vulnerable versions of request-promise
node_modules/zarinpal-checkout
tough-cookie <4.1.3
Severity: moderate
tough-cookie Prototype Pollution vulnerability - GHSA-72xf-g2v4-qvf3
No fix available
node_modules/request/node_modules/tough-cookie
Hi. Isn't it a better idea to use ES2015?
This way the code will be far more readable, easier to maintain.
It can be transpiled easily using babel
.
When I run paymentRequest() function, Browser and webview return cors erro!
Hi there
is there any way to use the refund
API with this package?
Best
hi . any plan on change the depricated dependency ? maybe use an allternative like axios ?
request/request#3142
GHSA-p8p7-x288-28g6
GHSA-72xf-g2v4-qvf3
thanks .
Hi Siamak, could you please explain how to send URLs with tokens to the current user?
I am getting a 404 error with the below details while sending all the required data.
sandbox: enabled
404 - {"Status":-11,"Authority":"","errors":{"Amount":["The amount field is required."],"CallbackURL":["The callback u r l field is required."],"Description":["The description field is required."]}}
Do you happen to have any idea about it?
Hi.
const ZarinpalCheckout = require('zarinpal-checkout')
const zarinpal = ZarinpalCheckout.create(process.env.MERCHENT_CODE, true);
let { userId } = req;
let { amount } = req.body;
let user = await User.findByPk(userId);
console.log(process.env.UI_PAYMENT_CALLBACK); // http://localhost:4000/payments/callback
let response = await zarinpal.PaymentRequest({
Amount: Number(amount),
CallbackURL: process.env.UI_PAYMENT_CALLBACK,
Description: 'شارژ اکانت',
Email: user.email,
Mobile: user.phone
}); // this line throw error.
what is my mistake
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.