Giter Site home page Giter Site logo

zarinpal-checkout's People

Contributors

hamidrezaeqbal avatar iamomiid avatar masihjahangiri avatar mcsh avatar sallar avatar siamak avatar siamakmokhtari avatar zoha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

zarinpal-checkout's Issues

issue on dependency

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

Use ES2015

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.

cors error

When I run paymentRequest() function, Browser and webview return cors erro!

Refund service

Hi there
is there any way to use the refund API with this package?
Best

getting 404 error

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?

PaymentFailed: Error: Invalid URI "undefinedPaymentRequest.json"

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.