CVS edit link for vikas_salyan
I am planning to create modules.
I am developing websites in Drupal for more than 1.5 year.
Recently we developed the website OPEN(http://openthemagazine.com), where we have integrated ICICI bank payment gateway for the magazine subscription (http://openthemagazine.com/subscribe) functionality.
I found it very useful and worth making it publicly available, specially for the India based users. So, I decided to develop a module which will add ICICI payment gateway as an option for the payment with Ubercart module(http://drupal.org/project/ubercart).
Please create my CVS account, so that i can submit my module for review.
Comments
Comment #1
vikas_salyan commentedPlease review the module attached with this comment.
Comment #2
avpadernoHello, and thanks for applying for a CVS account. I am adding the review tags, and some volunteers will review your code, pointing out what needs to be changed.
As per http://drupal.org/cvs-application/requirements, the motivation message should be expanded to contain more details about the features of the proposed module, and it should include also a comparison with the existing solutions.
Comment #3
vikas_salyan commentedHello, and thanks for adding the review tags.
Here i am writing some more detail about the features of the module:
The Payseal - ICICI Payment Gateway module implements the Payseal i.e. ICICI bank's payment processing service (www.icicibank.com) in Ubercart. This will come as a boon to Ubercart users in India looking to use an Indian payment processing service.
What services are integrated?
* Website Payments Standard - Customers are redirected to payseal after reviewing their order to complete payment, they return to your Ubercart site once payment is completed.
What does it take to get started?
* In order to use Payseal - ICICI payment gateway as your payment solution, you must have a payseal account.
To use this module, do the following:
1. Get a merchant account from ICICI bank.
2. Unzip the contents of the module (or upload the unzipped folder named uc_icici)at ../sites/all/modules/ubercart/payment/
3. Enable the module at ../admin/build/modules
4. Enable payseal - ICICI payment Gateway as a payment method at ../admin/store/settings/payment/edit/methods by ticking the check box for EBS
5. Enter your ICICI account secret key.
6. Upload the jars files (provided by the ICICI bank as PHP SFA library) to the server. For more detail about how to configure Payseal, please read the SFA PHP Merchant Integration Guide provided by the Payseal and INSTALL.txt file inside the module.
Comment #4
vikas_salyan commentedHI kiamlaluno,
Waiting for the review of the attached module.
In the above comment (http://drupal.org/node/739392#comment-2725622), i have also written the detail motivation message as suggested by you.
Thanks
Comment #5
zzolo commented@vikas_salyan, thanks for the application and patience. The following points are just a start and do not encompass all of the changes that may be necessary for your approval. Also, a specific point may just be an example and may apply in other places.
You suggest to users to put your module inside the ubercart module, but this is very bad as it is likely that this module will be erased during upgrading the ubercart module.
Depending on how sensitive this key is, having it stored in the file system of the site is insecure. Either have it stored outside the webroot of the site, or input it into the database.
Menu titles do not need to be wrapped in t().
You should be utilizing themes.
You should utilizing print() here, and not using JS for redirection as some people may not have it enabled.
Use t() correctly.
--
Note: Please be patient with the CVS application process. It is all done by volunteers. Our goal is not to be arbitrarily slow or meticulous. Our goal is to get you CVS access and ensure that you are and will become a more responsible Drupal contributor. For a quick reference on what I look for in a code review, please see this article.
Comment #6
vikas_salyan commented@zzolo: Thanks for the detailed and very helpful feedback.
I have incorporated the all above changed suggested by you, Here i am attaching the latest version of the code.
Please review the module.
Comment #7
avpadernoI will review the code between 4 days.
Comment #8
vikas_salyan commented@kiamlaluno: thanks.
Comment #9
avpadernoCode should use Drupal Unicode functions, when available. They allow to handle Unicode characters, as the charset set by Drupal is Unicode.
The correct way to get the path where a module is installed is to use
drupal_get_path().Drupal 6 requires at least PHP 4.4; the code to verify is PHP is at least 4.3 is then superfluous.
The code could delete the variables of any module with a name starting with (somebody could create a module named ). The suggested way to remove Drupal variables is to rename them by their complete name.
As Drupal 6 requires at least PHP 4.4, that line is superfluous too.
In such cases, the function
module_load_include()should be used.As the access callback always return
TRUE,'access callback' => TRUEis the faster way to define the callback (faster also for Drupal, that would not check if the function exists, call it, and check the return value).Strings used in the user interface should be in sentence case.
Comment #10
vikas_salyan commented@kiamlaluno: Thanks for the review.
Please find the attached newer version of the module.
Comment #11
phantomvish commentedsubscribing. When will this module be available for testing? I'm just a user and not a coder so can't help in review.
Comment #12
avpadernoI will make my next review within 6 days from July 8.
Comment #13
vikas_salyan commentedHi kiamlaluno,
I truly appreciate your reviews you have done in past for this module.... But i desperately wants to see this module on drupal.org. Please, can u help me in that?
Thanks,
Vikas
Comment #14
avpadernoThank you for your contribution! I am going to update your account.
These are some recommended readings to help with excellent maintainership:
You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
I thank all the dedicated reviewers as well.
Comment #17
avpaderno