Git Product home page Git Product logo

moodle-paygw_paymob's People

Contributors

fmido88 avatar

Watchers

 avatar

moodle-paygw_paymob's Issues

styles.css not specific enough.

in your styles.css you define a number of generic styles that could clash with core moodle code or other locations where simliar names are used.

Moodle helpfully adds a number of classes to the body tag based on the path that you can use such as:
eg if you are have a file in mod/assign you would see the following class added to the body tag
path-mod-assign
so if you have an item with the class "filething" on the page you would target it like:

.path-mod-assign .filething {
   color: red;
}

Take a look at some of the css in other payment gateway plugins for good examples on how to target the payment window when your gateway is selected.

Please make sure your css classes in styles.css are specific enough so they cannot clash with other core code - note this is a blocker for plugins db approval.

Never trust user input.

You have some incorrect use of PARAM_RAW in callback.php and you also have areas in that file that gets the raw data from $_GET and $_POST type calls but do not santise the values before you use them.

please use clean_param() or other apis to make sure the data is in an expected form before you use it.

Note: this is part of our security checklist and therefore is a blocker for plugins db approval

lang file should only contain english strings.

https://github.com/fmido88/moodle-paygw_paymob/blob/main/lang/en/paygw_paymob.php#L54

on approval in the plugins db - all strings are passed to our translation tool "AMOS" to allow users to translate them. Best to remove this string from the lang file as it will get very confusing for people using AMOS.

You can include an Arabic lang pack in your plugin if you want to, although it is typically easier to get AMOS to manage the strings and do the translation via the AMOS site when your plugin has been accepted.

Note this is a blocker for plugins db approval.

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.