Categories
ICICI EMI Payment Gateway JavaBridge Payment Gateway Integration Tomcat Server

How to install JavaBridge and integrate ICICI Payment Gateway

How to Install JavaBridge on tomcat server with php and linux environment. Step by step Procedure to create JavaBridge on Linux and then Integrating ICICI Payment Gateway

Step by step Procedure to create JavaBridge on Linux and then Integrating ICICI Payment Gateway

I have talked a lot to the ICICI Payment gateway guys in Mumbai. I sent so many mails and followed the complete useless procedure sent by them. Initially I asked for instructions to create JavaBridge in PHP+MySql+Apache+Linux(CentOs) but they were failed to sent me the usefull instructions. As they sent me instructions to create javabridge in Tomcat server so finally we also decided to create the JavaBridge in tomcat server. Then I with my TL (Mr. Anuj Shukla) sat together and worked on the instructions provided by Diadem Tech Weblogs. The instructions provided by him for installing the JavaBridge for Tomcat server + Linux were really helpful.

So here are few necessary and useful step by step instructions to install JavaBridge.

  1. Download the file “php-java-bridge_6.2.1_documentation.zip” from this link. This link will give you JavaBridge.war and documentation folder once you extract this downloaded file. You can extract using the following Linux command jar xvf JavaBridge.war Copy this JavaBridge.war file to your online Linux server at this location /var/lib/tomcat5/webapps/. We are assuming that you or your technical team already installed the tomcat server on your Linux Operating System.
  2. Then upload the JavaBridge.jar and php-servlet.jar, located under JavaBridge/WEB-INF/lib directory to this location of your server /var/lib/tomcat5/shared/lib/
  3. Once you upload the war file then you must restart the Linux server with the following command. Once you run the command using putty then a JavaBridge folder will be automatically created on the server. Use this Linux command to start the server/etc/init.d/tomcat5 restart (Once you restart the tomcat server and JavaBridge folder is automatically created this means the JavaBridge is installed properly)
  4. Then login to your ICICI merchant admin panel with required login details and download the key file and SFA files (php.zip) and extract it on your computer. The file will give you 2 zip files named as SFA_Dependencies.zip and SFAClient.zip and a file PHP Sfa Guide.pdf
    1. The PHP SFA comes bundled as 2 zip files –

    1.SFAClient.zip – This zip file contains the components, which provide the core SFA functionality and test pages

    2.SFA_Dependencies.zip – This zip file contains the components that are required for the SFA to function

    The installation process for SFA_Dependencies.zip is as follows –

    The zip file SFA_Dependencies.zip has the following files

    1)cryptix32.jar – Required by SFA to encrypt the data sent to the ePG

    2)jcert.jar – Required to establish the SSL connection with ePG

    3)jnet.jar – Required to establish the SSL connection with ePG

    4)jsse.jar – Required to establish the SSL connection with ePG

    5)Servlet.jar – HTTP Request/Response handling

    6)Sfa.jar – SFA Java library

1.      Now we need sfa.jar file that can be found under “SFA_Dependencies.zip” file so you need to extract SFA_Dependencies.zip to get the sfa.jar and edit the sfa.properties file with the following entries:

 

motoURL=https://payseal.icicibank.com/mpi/Moto.jsp

sslURL=https://payseal.icicibank.com/mpi/Ssl.jsp

verbose=true

Key.Directory=/var/lib/tomcat5/webapps/JavaBridge/key/

OS.Type=UNIX

epgURL=https://payseal.icicibank.com/mpi/PGServSFA

traceLog=/var/log/tomcat5

 

 

2.      Once you edit the sfa.properties file then put the file in sfa.jar file. You can use jar command Jar -xvf sfa.jar to extract file and once you successfully edited the sfa.properties then you can use jar command Jar -cvf sfa.jar com sfa.properties to zip the file.

 

3.      Then copy all the 6 jar files (that were extracted from SFA_Dependencies.zip file) including the edited sfa.jar file in /var/lib/tomcat5/common/lib/ folder

JAR Files to copy: cryptix32.jar, jcert.jar, jnet.jar, jsse.jar, servlet.jar, sfa.jar

 

4.      Then copy the key folder with key files in it to /var/lib/tomcat5/webapps/JavaBridge/ and give it a 777 read and write permission as shown in following image

By Vaseem Ansari

Hey guys this is Vaseem Ansari, 27 years old, Software & Web Developer, Blogger & works on Wordpress Plugin Themes Development, PHP MySql Programming and Open Sources Technologies.
It takes a while for me to build trust in someone new. I am honest, thoughtful. I'm Glad I'm Me No one looks The way I do. No one walks the way I walk. No one talks the way I talk. I am me. There's no one else I'd rather be! Have fun reading this blog and don't forget to subscribe to the feed to keep updated on the latest articles.

8 replies on “How to install JavaBridge and integrate ICICI Payment Gateway”

I like the article. I have a godaddy shared hosting account on linux server. Can i use this for ICICI payment Integration.
Please Reply.

Vipin

@vipin, you can surely use the icici payment gateway integration, the only thing that depends is your server configuration. you will require to create a javabridge for it. Let me know if you need more help about this.

Thank you it will definitely help me. I have been trying to write applications with Payment gateway. Thank you Vaseem

Hi Vaseem,

Nice tutorial, well the problem is that i am also trying to install javabrdge but did not get any success.

@Tarun
Will you email me the errors that you are facing and i will surely help you.
I hope you are subscribed to my blog and you also have my personal email address to get in touch with me.

Hi I am looking for ICICI integration on magento. Do you have experience and are you available for a project. Please contact me.
thanks
kumar

Leave a Reply

Your email address will not be published. Required fields are marked *