I have got so much from the community, now I want to give back some of what I created and learnt during the process. Also, when i contribute my code, it helps me in becoming a better developer as I get so many testers for free :)
This module I created allows ubercart to talk to HDFC payment gateway - one of the biggest payment gateways in India. Thus allowing the usage of ubercart for indian sites as well.
| Comment | File | Size | Author |
|---|---|---|---|
| #27 | uc_hdfc.zip | 16.99 KB | tajindersingh |
| #2 | uc_product_max_per_customer.tar_.gz | 2.55 KB | gargsuchi |
| #1 | uc_hdfc.tar_.gz | 43.22 KB | gargsuchi |
Comments
Comment #1
gargsuchi commentedThis module I created allows ubercart to talk to HDFC payment gateway - one of the biggest payment gateways in India. Thus allowing the usage of ubercart for indian sites as well.
Comment #2
gargsuchi commentedThis is another one - This module allows the store owner to restrict the maximum qty that a user can buy (in ubercart store)
Comment #3
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/theme; for modules it should include also a comparison with the existing solutions, while for themes a screenshot is also required.
We then review a module/theme per applicant; tell us which module you want reviewed.
Comment #4
gargsuchi commentedI actually wanted both the modules to be reviewed, but first, please review the uc_hdfc module. If needed, I can create another entry for the 2nd module (uc_product_max_per_customer)
To go in more details about the module, this module will create an HDFC payment gateway option for ubercart. HDFC is one of the biggest gatyeways in India. Till now there is no such module which provides HDFC payment gateway integration.
Comment #5
avpadernoComment #6
tajindersingh commentedHey Garagsuchi,
Thanks a lot for providing the download of module.
I was in a really urgent need of HDFC option in Ubercart for an NGO. I am unaware of from where to start for implementing this option in Drupal.
Just make me sure that it works fine on your side.
Thanks & Regards,
Tajinder Singh
Comment #7
gargsuchi commented@TajinderSingh - welcome. If you face any issues, do contact me.
Suchi
Comment #8
tajindersingh commentedHi Suchi,
I have just tried to implemented the module but got and error as below
warning: fopen(/var/www/html/tsnd/ubercartlesson/sites/default/ubercarthdfcresourcefile/resource.cgz): failed to open stream: Permission denied in /var/www/html/tsnd/ubercartlesson/sites/default/modules/contrib/uc_hdfc/libs/e24PaymentPipe.inc.php on line 681
It is looking for resource.cgz file while the HDFC people game me resource.cgn
Do I need to change the file extension or the module code to look for .cgn file. Otherwise is there any such case that they offer different file types to different merchants or operating systems.
The file I got from their Merchant account login.
Thanks & Regards,
Tajinder Singh
Comment #9
tajindersingh commentedHi,
I have found that you have used library to communicate with HDFC gateway without using JAVA installed on the host server.
http://e24payment-php.sourceforge.net
But I my case the JAVA Bridge is successfully configured on the server.
Let me check if I can get to some solution and will post over here with the JAVA Bridge compatible code too.
Thanks & Regards,
Tajinder Singh
Comment #10
tajindersingh commentedHi,
Please let me know i e24TranPipe coding is required as HDFC haven't given any such JAVA class to interact with.
Thanks & Regards,
Tajinder Singh
Comment #11
gargsuchi commentedHi
I am not sure if that library needs to be coded or not. I was having major troubles with the Java bridge, even though it was installed on my server. That's why I decided to use this PHP library instead. My code is not exactly same as the library, i actually took the javabridge code provided by HDFC and converted it into the equivalent PHP only version for my project requirements.
Thx
suchi
Comment #12
tajindersingh commentedHi,
It is working now upto the HDFC Pay button click.
But do I have to implement custom php pages for the Success URL and Error URL for handling response generated by HDFC website?
Thanks & Regards,
Tajinder Singh
Comment #13
tajindersingh commentedHi,
Is it the case that order status has to be updated by the admin by manually checking his HDFC account for payment received status?
Thanks & Regards,
Tajinder Singh
Comment #14
tajindersingh commentedHi,
Thanks, your module worked and succeeded for HDFC's 12 point test cases.
Please make me aware of what are expected values for the Ubercart HDFC configuration for live payment processing.
Right now the configuration is as below:
Currency: Indian Rupee
Alias: xxxxxxxx (my alias)
Password: xxxxxxx
Resource Path: ../ubercarthdfcresourcefile/
Success URL: uc_hdfc/intermediate
Error URL: uc_hdfc/intermediate
from the .module file's comments got to know that url uc_hdfc/intermediate can be used for testing purposes.
Is there the case that the Success URL should have url as uc_hdfc/success?
And what should be for the Error URL as I haven't found any specific URL such as above ones?
Thanks for the really helpful module.
Thanks & Regards,
Tajinder Singh
Comment #15
gargsuchi commentedHi Tajinder
You actually dont need to change the success url and the error url. uc_hdfc/intermediate is able to handle both the successful transaction as well as transaction failure.
Thx
suchi
Comment #16
dave reidTagging all CVS applications with ubercart-related code.
Comment #17
tr commentedYou shouldn't distribute third-party code with your module. You should remove pclzip.lib.php and e24PaymentPipe.inc.php, then in your README.txt include instructions for how to obtain these files from the copyright holder. You should use module_load_include() instead of include() for the other libraries.
Also, you need to install the Coder module and use it to help make your module comply with Drupal coding standards.
Comment #18
tajindersingh commented@TR
Thanks for the key points, those will really help to beginners like me while developing modules.
Comment #19
piyushsharmajec commentedThis module is good.
I used in site www.amarchitrakatha.com, and it is successfully runs.
The guy who developed this code (gargsuchi) is really very helpful if you got stuck in any problem.
I used hdfc module after some necessary changes according for my site like eg reviewing the cart panel.
The module is very supportive as there is no such module for Indian banks in drupal.
Comment #20
tajindersingh commentedHi,
does anybody know what sort of redirection it is being used in uc_hdfc module with code
$REDIRECT = 'REDIRECT=' . $base_url . '/uc_hdfc/success?paymentid=' . $payID;
echo $REDIRECT;
If I replace this with PHP's header('location:url') function, drupal_goto or even tag for redirection the payment gateway just fails with writing in their logs being "invalid redirection url".
Please help,
Thanks & Regards,
Tajinder Singh
Comment #21
avpadernoComment #22
gargsuchi commentedHi
This module is being used successfully at http://www.amarchitrakatha.com/
Please approve it as a module.
Thx
Suchi
Comment #23
tr commentedYou haven't addressed the issues I pointed out in #17. The module as is cannot be put into CVS.
Comment #24
avpadernoThis application has been left without a reply since December; please re-apply for a CVS account.
What reported by TR still needs to be fixed, though.
Comment #25
zeet commentedhi
i was just looking up for drupal module for indian banks. i think this will be really good additions. gargsuchi should fix up the issue in #17 and go ahead with approving as drupal module.
Comment #26
tajindersingh commentedHi,
We hare successfully using this module at http://sribhainisahib.com a non-profit religious website.
We have implemented some modification for multi-currency support and will fix issues mentioned as return for this awesome work done by garagsuchi.
Thanks & Regards,
Tajinder Singh
IMP Technologies
[Affordable :: Quality :: Satisfaction]
http://imptechs.com
Comment #27
tajindersingh commentedHi,
Please find the attached module with efforts to resolve the mentioned issue to get it approved as a module on Drupal.org
Module description is, also available as Module help after installation, as below:
It requires to download below listed libraries from mentioned URLs and be placed in /uc_hdfc/libs folder.
e24PaymentPipe.inc.php
http://e24payment-php.sourceforge.net
pclzip.lib.php
http://www.phpconcept.net/pclzip
Don't delete e24TransPipe.inc.php being a modified version of e24PaymentPipe.inc.php to suit HDFC gateway needs
Currently provides support for only 6 currencies as AUD, AED, EUR, GBP, INR and USD.
Currencies and their respective parameters are configurable from settings page for module including enable/disable and setting a currency as a base/default currency.
Currency Exchange rates are updated from Google Calc or Yahoo Finance one each Cron run.
Facility to add custom currencies from Admin Panel will be there in future releases.
Please check and consider approving the module, otherwise let us know if any further work is required.
Thanks & Regards,
Tajinder Singh
IMP Technologies
[Affordable :: Quality :: Satisfaction]
http://imptechs.com
Comment #28
arianek commentedHi. Please read all the following and the links provided as this is very important information about your CVS Application:
Drupal.org has moved from CVS to Git! This is a very significant change for the Drupal community and for your application. Please read the following documentation on how this affects and benefits you and the application process:
Migrating from CVS Applications to (Git) Full Project Applications
Comment #29
avpadernoThe user who applied for the CVS account didn't reply from September 2010. I am closing this application.
Comment #30
Royal_Jat commentedHi Tajinder Singh,
I want to use this module(uc_hdfc). i have all details about merchant account.
But i don't know that what should i placed on "Resource Path: ../ubercarthdfcresourcefile/".
please suggest me.
thanks
SARAVAN
Comment #31
tajindersingh commentedSorry for a really really delayed response to your question, but here it is for anyone else's reference or in case you haven't got it still.
'../ubercarthdfcresourcefile/' should be replace with a folder above your root directory of your hosting.
Keeping resource file in directory above the root directory e.g. public_html or www, makes the resource files secure as not browsable.
Kind Regards,
Tajinder Singh
IMP Technologies
Creating Masterpieces...
http://imptechs.com
Comment #32
sandip choudhury commentedHello,
I have seen this module. It is saying that it needs to download Resource.cgn file from hdfc bank payment website to work properly. But now HDFC bank changed the rules and they said me that they only will provide ID and password to activate the payment gateway. So, is this will work with only ID and password? Or do you have any updated version?
Comment #33
sandip choudhury commentedHi,
It is said in the forum that this module is used here - http://www.amarchitrakatha.com/. But now I have seen this website is using CC Avenue for payment gateway.
Can you please say why you left HDFC bank and using CC Avenue? Is there service is not good?
Comment #34
avpadernoComment #35
drupalbabaji commentedIs this module still works as HDFC bank changed the rules and they said me that they only will provide ID and password to activate the payment gateway.
Comment #36
avpaderno