Sunday, 22 July 2012

Integration of Secure EBS Payment Gateway in Magento



           Today I’m going to tell you about how to integrate Secure EBS Payment Gateway
 in Magento .


Steps for Integrating Secure EBS Payment Gateway in Magento :

       Secure EBS payment Gateway is default Module in Magento. Despite below, steps
 are help for Understanding or How module is integrated in magento.
You can download the module from below link

( I ) Follow Below steps :
       1)      Copy the folder Secureebs to magento\app\code\core\Mage\
       2)      Copy the file Mage_Secureebs.xml to magento\app\etc\modules\
       3)      Copy the folder secureebs to magento\app\design\frontend\base\default\template\
       4)      Add the file Mode.php inside magento\app\code\core\Mage\Adminhtml\Model\System\
Config\Source\
       5)      Enter your Account Id , Secret Key and select the Mode from the EBS
Payment Method control panel & Enable it.

 ( II ) Finally Need to update below file otherwise we will get Error :
Open File   \app\code\core\Mage\Secureebs\Block\Standard\Redirect.php

( III ) Below code is default code in redirect.php :
$name=$fname.” “.$lname;
$address=$street.”,”.$city.”,”.$state;
$mode=Mage::getSingleton(‘secureebs/config’)->getTransactionMode();
if($mode == ’1′)
{
$mode=”TEST”;
}
else
{
$mode=”LIVE”;
}
 Customize code : (Here we need to add below code)
$secretKey = Mage::getSingleton(‘secureebs/config’)->getSecretKey(); // Our SecretKey
$account_id = Mage::getSingleton(‘secureebs/config’)->getAccountId(); //account ID
$amt = $amount;
$refrence_no = $referenceno;
$return_url = $returnurl;
$mode = $mode;
 $string = “$secretKey|$account_id|$amt|$refrence_no|$return_url|$mode”;
// Should add ” | ” between parameters
 $secure_hash = md5($string); // Encrypt MD5 format
$form->addField(‘reference_no’, ‘hidden’, array(‘name’=>’reference_no’, ‘value’=>$referenceno));
$form->addField(‘amount’, ‘hidden’, array(‘name’=>’amount’, ‘value’=>$amount));
$form->addField(‘mode’, ‘hidden’, array(‘name’=>’mode’, ‘value’=>$mode));
$form->addField(‘return_url’, ‘hidden’, array(‘name’=>’return_url’, ‘value’=>$returnurl));
$form->addField(‘name’, ‘hidden’, array(‘name’=>’name’, ‘value’=>$name));
$form->addField(‘description’, ‘hidden’, array(‘name’=>’description’, ‘value’=>$desc));
$form->addField(‘address’, ‘hidden’, array(‘name’=>’address’, ‘value’=>$address));
$form->addField(‘postal_code’, ‘hidden’, array(‘name’=>’postal_code’, ‘value’=>$postalcode));
 $form->addField(‘secure_hash’,'hidden’,
array(‘name’=>’secure_hash’, ‘value’=>$secure_hash)); // this line need to add

( IV ) Enable Module from Admin panel :
After integrate this module , open magento admin panel , then enable Secure EBS Payment Gateway, and pass your secret Key and account ID.

For any magento customization contact:
Company : Parsys Media
Mumbai Office :
Mobile No : +91-8123481528(Ashish Khadpe)

18 comments:

  1. i did the same thing pasted all the files but unable to see the module in admin section navin547@gmail.com plz help

    ReplyDelete
  2. Hey, nice post...love the way you have presented the whole story...it's
    always good to read and get to know quality stuff...

    Do visit my page and leave a comment if you like any of it...

    Techiezens Payment Gateway

    ReplyDelete
  3. hey, Great Work, I am big fan of your ,
    i need a help from you .. actually i have a running site on Magento ver. 1.9.0.1. and i need to integrate HDFC payment gateway on it . I try every method shown on internet but it doesn't work . i try a magento extension on HDFC payment gateway (http://www.magentocommerce.com/magento-connect/hdfc-paymentgateway-1.html) but instead of working it take my site on maintenance .NOTHING WORK AT ALL , so overall i am in deep shit. I need a urgent working sol. on HDFC payment gateway .
    please help me out on this ,
    thanks
    regards
    Aditya

    ReplyDelete
  4. I am looking for a plugin to enable social login and sharing at my magento webstore
    Magento Store Permissions

    ReplyDelete
  5. Mobile Testing Training in Chennai
    We provide mobile testing training in Chennai with project support.Here the trainers who provide training have more than 8+ yrs of experience.Our training program is planned according to the students needs and requirement.
    Contact us: 8122241286
    Now a days mobile is the common thing everyone is using.We are seeing daily that new brands of mobile and new advanced versions of mobile are coming.Before every mobile is launched they are tested.So to know more about the Mobile testing that how a mobile is testing and what tools we require. You need to learn the mobile testing training.Now a days there is rapid growth in mobile development jobs.
    Contact us: 8122241286
    http://thecreatingexperts.com/magento-training-in-chennai/

    ReplyDelete

  6. Mobile Testing Training in Chennai
    We provide mobile testing training in Chennai with project support. Here the trainers who provide training have more than 8+ yrs of experience. Our training program is planned according to the student’s needs and requirement.
    Contact us: 8122241286
    http://thecreatingexperts.com/magento-training-in-chennai/

    ReplyDelete
  7. Thanks for sharing this Information, Got to learn new things from your Blog on MAGENTO.
    Ref link : http://thecreatingexperts.com/magento-training-in-chennai/

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete
  9. Thanks for sharing this Information, Got to learn new things from your Blog on Magento.
    Ref link : http://thecreatingexperts.com/magento-training-in-chennai/

    ReplyDelete
  10. Thanks for sharing this information.It was very nice blog to learn about magento

    ReplyDelete
  11. Great Read! I am impressed on how you make your article easy to understand. I'll come back for more :D

    For more tutorial and tips about web design and web development you can follow me here -> http://alwaysopencommerce.com/

    ReplyDelete
  12. Nice Blog, thank you for sharing the useful information. Visit our Visit magento development company india

    ReplyDelete