Thursday, November 1, 2012

Payseal is a payment gateway by ICICI


Here i am demonstrating simple steps to integrate payseal to your PHP website on a shared hosting.





1) You get following document from ICICI once you are enrolled for the payment gateway.

  • a folder name Sfa
  • a folder named Test pages
  • sfa.properties  file
  • a word document  a guide to how to integrate
  • key file 


2)Upload these file to your webserver in  the following structure to some folder and make that folder secure.
   Upload the key file at your desired location.


3) If you are a SSL merchant go to your testssl.php file and make the following changes in it.



4) Now go to your sfa.properties file and make a single change there(put the directory path to your key file).



BINGO!!!    you are done.





DROP YOUR QUERY IN THE COMMENT AREA. I WILL BE HAPPY TO HELP.


Visit for  - ICICI Payment Gateway Error Codes, Explanation and Solutions

Remote Computer Fix

103 comments:

  1. Hi,

    Currently we are using ICICI payment gateway service for US and UK based customers in USD and GBP currency.
    Our most of the transactions get failed (over 65%). sometimes the reason shows "rejected by switch" or "rejected by gateway" .
    Since many payments are going through smoothly so system is actually working but we are not able to trace what could be the reason behind this huge number of declines. ICICI support is also useless, they too don't have any clue. I would like to check with you if there are some server parameters missing or you have any idea that could be of any help.

    Thanks you.
    Zafar

    ReplyDelete
    Replies
    1. If still need any support, You can find more details and support for any Payment Gateway Integration related queries from iPistis Team

      Delete
  2. Dear zafar ....you are missing no server parameters
    ..its the policy of banks mostly in UK that they don't allow payment to a Asian gateway as this may have involment with terrorist activity
    .so the only solution is that you ask your customer to call their bank and uphold such restrictions. Also get SSL for ur website.

    ReplyDelete
  3. ArthInfosoft is one of the most reliable firms for Payment gateway services in India that provide technical solutions to credit card transactions when a customer makes an online shopping and do the payment.

    Payment Integration Solutions

    ReplyDelete
  4. Hi,

    Can I use this payment gateway to make money transfer from, Site owner's a/c to other user's a/c?

    ReplyDelete
    Replies
    1. yes you may, but will have to apply for the facility additionally .

      Delete
  5. H can you please help regarding bth eintegration Of ICICI TestMoto MID as we are not able to modify the testmoto.php page ...
    Please Help

    ReplyDelete
  6. Can anyone please tell me how to change the redirect url of cancel button on this payment gateway?

    ReplyDelete
    Replies
    1. You can edit your SFARespose.php page to go a certain url depending on the parameter received to SFARespose.php

      Delete
    2. please tell me where should i change the url..

      Delete
  7. Replies
    1. No , SSL is not mandatory . You can integrate Payseal with a non-ssl website also

      Delete
    2. Thank you for response.
      If I will stuck in integration, I will post the questions.

      Delete
    3. I have download php code. But I am not getting sfa.properties in folder. And one more thing how can I get key file

      Delete
    4. key can be obtained by logging into your merchant account. there on the the side bar you can see "download the key". key can downloaded only once so be careful while saving it. you can get the .properties by calling on icici helpdesk on 18001021671

      Delete
  8. Hi i want to track the transaction. so i have send Unique Order ID and Invoice number to Testssl.php page and 1 backup copy i have send on Reserve Field Ext 1.

    But the thing is how do i get the value in SFAResponce.php page.. my unique OrderId and Invoice number is stored i have check the ICICI Portal.
    Can you please help ??

    ReplyDelete
    Replies
    1. edit the following details--
      on testssl.php

      $oMerchant->setMerchantDetails - pass the value to your sfaResponse.php


      on sfaResponse.php

      $strMerchantId="your value here"; $astrFileName="absolute/physical path to your key file";


      now you can use "print" or "echo" to display various value.
      the variable for tarnsaction id is -- $TxnID

      for more variables refer to ICICI payment documentation

      Delete
    2. Thank you for best & easy solution.

      Delete
  9. Error Occured.
    Error Code:2
    Error Message: No response From Payment Gateway or URL not Found

    ReplyDelete
    Replies
    1. either the key has corrupted or the path to the key on the sfa.properties is worng

      Delete
    2. This comment has been removed by the author.

      Delete
    3. i'm also facing the same problem , same error key is there and correct path too .
      even i downloaded key again and checked again .

      Delete
    4. Kindly Make changes in PostLibPHP.php (Inside Sfa folder)on Line no 716

      Kindly change the slash on this line :- curl_setopt($ch, CURLOPT_CAINFO, getcwd() . "\Sfa\cacert.pem");

      For Linux it should be Forward slash curl_setopt($ch, CURLOPT_CAINFO, getcwd() . "/Sfa/cacert.pem");

      Delete
  10. hi..
    please check if verbose meter is kept true:
    and check for error_log..

    :: or try the below steps ::
    Kindly Make changes in PostLibPHP.php on Line no 716
    curl_setopt($ch, CURLOPT_CAINFO, getcwd() . "\Sfa\cacert.pem");


    Kindly change the slash on this line :- curl_setopt($ch, CURLOPT_CAINFO, getcwd() . "\Sfa\cacert.pem");

    For Linux it should be Forward slash curl_setopt($ch, CURLOPT_CAINFO, getcwd() . "/Sfa/cacert.pem");

    see if this solves your problm...

    ReplyDelete
  11. Error Occured.
    Error Code:2
    Error Message: No response From Payment Gateway or URL not Found

    Key.Directory=/home/....../public_html/mg1/sbi/

    ReplyDelete
  12. Please Open Postlib.php , go line no 716 .

    Kindly change the slash on this line :- curl_setopt($ch, CURLOPT_CAINFO, getcwd() . "\Sfa\cacert.pem");

    For Windows it should be Backward slash curl_setopt($ch, CURLOPT_CAINFO, getcwd() . "\Sfa\cacert.pem");

    For Linux it should be Forward slash curl_setopt($ch, CURLOPT_CAINFO, getcwd() . "/Sfa/cacert.pem");

    ReplyDelete
  13. Hi,

    I am PHP developer and having domain http://www.dnrds.com .I want to integrate ICICI payment gateway for my website,please guide me.

    Regards
    Prasenjit

    ReplyDelete
  14. Hi Please send me fresh code for payment gateway. I really need it.Its very urgent,mail me:

    prasenjitmodak@gmail.com
    Mobile: 9831569274

    ReplyDelete
  15. I want to add pay seal icici payment gateway with my client website using php but i am having problem in this. If anyone knows the solution then please help.Its very urgent.Please guide me.

    Regards
    Prasenjit Modak












    prasenjitmodak@gmail.com

    ReplyDelete
    Replies
    1. You need to apply for the gateway to ICICI bank. They will provide you with the Merchant Id and necessary documentation.

      Delete
  16. i am new to the gateway integration.please help me to integrate i have designed the cart and collected all information from the user now on checkout button what i have to sent which page.in paypal we send email id in a hidden form and paypal processed it.
    please tell me how to do it with icici.my cart is ready with all user data i stuck at the when the user select the payment mode not COD than where to go.
    if you have any example of cart integration please send it to me i will be very thankful to you.

    lalit.rhombus@gmail.com

    ReplyDelete
  17. Hi,
    I am getting following response after running TestSsl.php and filling card info on ICICI Merchant Services :-

    Response Code:2
    Response Message:No Suitable Acquirer Found

    Transaction detail shows status as "Rejected By Gateway".

    I am stuck on the above step. Please guide me to solve it.
    Thank You

    ReplyDelete
    Replies
    1. if it says "No Suitable Acquirer Found" then you have done the integration successfully. its only that your account in test mode. now you need to contact your bank and fill a form called as "mandate form" then you can get your account activate

      Delete
    2. Thank you for your help. And have one more query that does "Rejected By Acquirer" also means the same?

      Delete
  18. My key path is correct. but am also getting the error
    Error Occured.
    Error Code:2
    Error Message: No response From Payment Gateway or URL not Found.
    what can i do?

    ReplyDelete
    Replies
    1. you have to give the physical path to the key, like home/public_html/
      url will not do.
      if you have put the key correctly then might be the key itself is wrong. You can call 1800 102 1671 and obtain keyfile

      Delete
  19. Hi How to integrate ICICI payment gatway in wordpress website ?

    ReplyDelete
  20. Please tell the steps to integrate ICICI payseal payment gateway in woocommerce wordpress website? - jasmine

    ReplyDelete
  21. Hi can i run the testssl.jsp without placing in the root directory of my project

    ReplyDelete
    Replies
    1. yes you can, unless the path to key file is configured properly

      Delete
  22. how to set absolute path of key on local system.....in sfa.property and Sfaresponse.php
    is it right or wrong http://localhost/daily_purchase_new/icici/

    ReplyDelete
    Replies
    1. absolute path will not include "http://".
      if you are using a linux server then the absolute path will be like www/../daily_purchase_new/icici/

      if you are using a windows server then the absolute path will be like inetpub/../daily_purchase_new/icici/

      please arrange the file directory according to your setup

      Delete
  23. response code is 2
    response message is invalid credentials
    what is the reasons for this message

    ReplyDelete
    Replies
    1. key file has got corrupted. Apply for a new key file by calling the gateway support.

      Delete
    2. how to applay new key files i have some error please sent step by step

      Delete
  24. Me also facing Same issue testssl.php and testmoto.php while running. How to fix this.

    ReplyDelete
  25. can anybody help to integrate icici payment gateway.... code
    please mail sample code and structure to krishna.gadgul@gmail.com

    ReplyDelete
  26. can anybody help to integrate icici payment gateway.
    please mail sample code and structure to krishna.gadgul@gmail.com

    ReplyDelete
  27. hi,Without registration at ICICI can we use payseal for payment integration as like we are doing in Paypal sandbox. The reason is we wan to test the service before registering and enrolling in this payment integration? so is ti possible or not?

    ReplyDelete
  28. Error Occured.
    Error Code:2
    Error Message:Invalid Credentials
    how to fix this error please sent me devadash143@gmail.com and phone 9776380822 bhubaneswar

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
    2. hii,
      i am getting the same error.although i have made all the possible changes.
      if you get the solution please tell me..

      thnks in advance

      Delete
  29. @ w3 Technologies.....
    Use Correct Merchant Id in sfa.properties and TestMoto or TestSsl file Key file and try transaction ...... for more contact at krishna.gadgul@gmail.com

    ReplyDelete
  30. hi,
    im getting successsfull message as an array printed in SFAResponse.php and not returning to the confirmation page. how to fix this error?.... pls help me....

    ReplyDelete
  31. Warning: require_once(java/Java.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\icicidemo\testjava.php on line 14

    Fatal error: require_once() [function.require]: Failed opening required 'java/Java.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\icicidemo\testjava.php on line 14

    ReplyDelete
  32. i already done with above steps,

    Help me out.

    Thanks in advance.

    ReplyDelete
  33. hi, I am inegrating this plugin for my website, how ever one of the folders(SFA) are still present in root. If I remove the folder from there the
    plugin stops functioning. I have implemented the entire folder inside another folder where the other files exist. But I am not able to relocate that particular
    folder. Please help.

    ReplyDelete
  34. Error Occured.
    Error Code:2
    Error Message:Invalid Credentials

    hello,
    how can i get rid of this error.i am getting this error every time i procced to make payment.although i have made all the possible changes in payment integration pages..please help me out

    ReplyDelete
  35. i getting invalid credential error..plz tell me wt to do

    ReplyDelete
  36. check ur key file and physical path to the key file

    ReplyDelete
  37. Where I can find the installation and setup details

    ReplyDelete
  38. Hi,
    While accessing TestSsl.php, i am getting the following error.
    Error Occured.
    Error Code:2
    Error Message:Invalid Credentials
    What could be the cause for this? I am using apache server in ubuntu.
    1,sfa.properties has
    Key.Directory=/var/www/sitespecificfolder/public_html/key
    OS.Type=UNIX
    2,SFAResponse has
    $strMerchantId="9604xxxx";
    $astrFileName="/var/www/sitespecificfolder/public_html/key/9604xxxx.key";
    3,TestSSL.php
    $oMerchant->setMerchantDetails("9604xxxx","00002116","00002116","10.10.10.238",rand()."","Ord1234","http://sitename.com/New_PHP_SFA/sfa.properties","POST","INR","INV123","req.Sale","100","","Ext1","true","Ext3","Ext4","New PHP");
    Should i add the key name in all three places "setMerchantDetails("9604xxxx","00002116","00002116",". Right now i have put it only in the first place.

    My folder structure
    ------------------------
    /var/www/sitespecificfolder/public_html/
    /var/www/sitespecificfolder/public_html/key
    /var/www/sitespecificfolder/public_html/key/9604xxxx.key
    /var/www/sitespecificfolder/public_html/New_PHP_SFA
    /var/www/sitespecificfolder/public_html/New_PHP_SFA/Sfa (and all the default files)
    /var/www/sitespecificfolder/public_html/New_PHP_SFA/sfa.properties ( and response, testssl etc)

    Any help is much appreciated. What am i doing wrong here?

    ReplyDelete
  39. plz help me out this error.

    Error Occured.
    Error Code:2
    Error Message:Invalid Credentials

    ReplyDelete
  40. hi,
    after filling all the details of card, i click a pay button am getting like this what to do sir..
    Response Code::

    Response Message::

    Auth ID Code::

    RRN::

    Transaction id::

    Epg Transaction ID::

    CV Response Code::

    ReplyDelete
    Replies
    1. the variables on the SFAResponse.php file are not accepting the values/displaying values sent by the gateway. Plz check your method get/post.

      Delete
  41. Hi Sir,

    Good Evening!!
    Am gettinng this below eroor please help me out this ...

    Response Code:: 2
    Response Message:: Card Bin Stop Listed
    Auth ID Code::
    RRN::
    Transaction id:: 15917
    Epg Transaction ID:: 201504251255359
    CV Response Code::

    ReplyDelete
    Replies
    1. nothing can be done here . The card is blocked by the bank for online transaction.

      Delete
    2. Then how can i test transaction?

      Delete
  42. Hello Sir,

    once the test integration part is done than what we have to do sir...
    we have to ask live code for bank guys or i have to implement this test code live..

    waitning for your reply sir...
    Thanks.

    ReplyDelete
  43. Contact bank technical team and tell we have done successful test please do further steps.

    ReplyDelete
  44. hello sir,

    i have done in icici payseal integration test part and i got confirmation mail from icici what is next procedure to make it in live

    ReplyDelete
  45. hi,
    is there any difference between GET and Post method for passing values in testssl.php??
    because when i use get method its working fine.bt on using POST method it is showing invalid credential error..plz help me

    ReplyDelete
  46. Hi Sir,

    I am getting below error while executing "TestSsl.jsp" ;

    epg Error encountered. Error Code : 2 . Message Error while encrypting data. Transaction cannot be processed.

    please reply fast i need help urgently

    ReplyDelete
  47. hi, when i run test.php file i get following error.
    java extension not installed
    Fatal error: Class 'Java' not found in C:\xampp\htdocs\Merchant_Site_Dir\test.php on line 29

    I am using apache server. I dont know how to set up java with apache.

    Please help me out in this. Thanks in advance

    ReplyDelete
  48. Error Occured.
    Error Code:2
    Error Message:Internal Processing Error

    ReplyDelete
  49. can you please help me out this. suddenly i got this messege. Befor that everything is working fine...
    Error Occured.
    Error Code:2
    Error Message:Internal Processing Error

    ReplyDelete
  50. How To Update Transaction Status after Getting Responce Page

    ReplyDelete
  51. when im clicking on conform order it is not taking me to payment page were i can put card details can you please help me out in this problem

    ReplyDelete
    Replies
    1. May be you are not providing the correct parameters.Send us the code of your TestSsl.php to info@cyberrafting.com.

      Delete
    2. hi can i get your phone number

      Delete
  52. Error Occured.
    Error Code:2
    Error Message: No response From Payment Gateway or URL not Found

    can u help me out

    ReplyDelete
  53. my MID is configured for accepting multi currencies. but gateway not accepting multi currency like GBP, USD and more.

    ReplyDelete
    Replies
    1. ICICI has stopped accepting other currencies, Though you can accept the equivalent exchange amount in INR but the currency will always be shown in INR on the payment page. This has been done stop the fraudulent with overseas customers.

      Delete
  54. Hi sir,
    Thanks in advance…
    I want to integrate ICICI Payment getaway for my PHP site.I want that first user fill a simple form like name, email and amount after this form submission user will redirect to ICICI payment gataway.I want to know what action=”” should i need to put on my form so that it redirect to payment gataway.
    Please reply fast :)

    ReplyDelete
  55. hii
    PHP Java bridge setup require for ICICI Payment getaway integration in php ?
    Your help is appriciated.
    Thanks in advance.

    ReplyDelete
  56. How we can integrate ICICI EazyPay payment gateway in woocommerce wordpress website?

    Can anyone help me on this...?

    ReplyDelete
  57. Hi,

    I want to integrate ICICI gateway on one of the my website. How can I start?
    Website is in PHP.

    ReplyDelete
  58. How we can integrate Easypay icici on woocommerce WordPress website any help?

    ReplyDelete
  59. http://www.webzonal.com

    ReplyDelete
  60. Hi

    I m integrating ICICI payment gateway.I created Form for that.but when I click on submit button I got following error:
    SQLSTATE[28000] [1045] Access denied for user 'hatch1h7_ar'@'148.66.145.158' (using password: YES)Error Occured.
    Error Code:2
    Error Message:Invalid Credentials

    What should be reason for that?

    ReplyDelete
  61. Hi after making some changes in integration kit I redirected to the blank page..what should be the reason? you can check: http://oscarfoundation.in/FINAL/TestSsl.php
    plz give me some suggestion for this

    ReplyDelete
  62. We need some thing about the boom lift for rent division in india

    ReplyDelete
  63. I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing..
    payment gateway in qatar

    ReplyDelete
  64. I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often. White Label Payment Service Provider

    ReplyDelete
  65. I am very enjoyed for this blog. Its an informative topic. It help me very much to solve some problems. Its opportunity are so fantastic and working style so speedy. North American Bancard Agent Program

    ReplyDelete