CVS edit link for gargsuchi

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.

Comments

gargsuchi’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new43.22 KB

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.

gargsuchi’s picture

StatusFileSize
new2.55 KB

This is another one - This module allows the store owner to restrict the maximum qty that a user can buy (in ubercart store)

avpaderno’s picture

Status: Needs review » Needs work
Issue tags: +Module review

Hello, 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.

gargsuchi’s picture

I 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.

avpaderno’s picture

Status: Needs work » Needs review
tajindersingh’s picture

Hey 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

gargsuchi’s picture

@TajinderSingh - welcome. If you face any issues, do contact me.

Suchi

tajindersingh’s picture

Hi 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

tajindersingh’s picture

Hi,

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

tajindersingh’s picture

Hi,

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

gargsuchi’s picture

Hi
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

tajindersingh’s picture

Hi,

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

tajindersingh’s picture

Hi,

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

tajindersingh’s picture

Hi,

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

gargsuchi’s picture

Hi 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

dave reid’s picture

Issue tags: +Ubercart

Tagging all CVS applications with ubercart-related code.

tr’s picture

Status: Needs review » Needs work

You 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.

tajindersingh’s picture

@TR
Thanks for the key points, those will really help to beginners like me while developing modules.

piyushsharmajec’s picture

This 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.

tajindersingh’s picture

Hi,

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

avpaderno’s picture

Status: Needs work » Closed (won't fix)
gargsuchi’s picture

Component: Miscellaneous » miscellaneous
Status: Closed (won't fix) » Reviewed & tested by the community

Hi
This module is being used successfully at http://www.amarchitrakatha.com/
Please approve it as a module.

Thx
Suchi

tr’s picture

Status: Reviewed & tested by the community » Needs work

You haven't addressed the issues I pointed out in #17. The module as is cannot be put into CVS.

avpaderno’s picture

Status: Needs work » Closed (won't fix)

This 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.

zeet’s picture

hi

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.

tajindersingh’s picture

Status: Closed (won't fix) » Needs work

Hi,

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

tajindersingh’s picture

Status: Needs work » Needs review
StatusFileSize
new16.99 KB

Hi,

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

arianek’s picture

Status: Needs review » Postponed

Hi. 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

  • The status of this application will be put to "postponed" and by following the instructions in the above link, you will be able to reopen it.
  • Or if your application has been "needs work" for more than 5 weeks, your application will be marked as "closed (won't fix)". You can still reopen it, by reading the instructions above.
avpaderno’s picture

Component: miscellaneous » new project application
Status: Postponed » Closed (won't fix)

The user who applied for the CVS account didn't reply from September 2010. I am closing this application.

Royal_Jat’s picture

Hi 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

tajindersingh’s picture

Sorry 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

sandip choudhury’s picture

Issue tags: +Payment Gateway

Hello,

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?

sandip choudhury’s picture

Title: gargsuchi [gargsuchi] » HDFC Bank Payment Gateway
Status: Closed (won't fix) » Active

Hi,

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?

avpaderno’s picture

Title: HDFC Bank Payment Gateway » gargsuchi [gargsuchi]
Status: Active » Closed (won't fix)
Issue tags: -Ubercart, -Module review, -Payment Gateway
drupalbabaji’s picture

Issue summary: View changes

Is 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.

avpaderno’s picture

Status: Closed (won't fix) » Closed (duplicate)
Related issues: +#2236585: [D7] jQuery Quiz