Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

HDFC Payment Gateway
 
Digitalapp
Jr. Member
 
Avatar
Total Posts:  14
Joined:  2010-05-04
 

Hi Friends.....

I want to use HDFC’s Payment Gateway in magento, Is magento supports HDFC\’s Payment Gateway ?

Thanks....

 
Magento Community Magento Community
Magento Community
Magento Community
 
wmcferr
Sr. Member
 
Total Posts:  174
Joined:  2010-11-16
 

This file is used for authenticating the merchants and it contains certain
parameters pre-set in it which can be read, only by the plugins stored at
merchant server. On successful authentication then only the plugins proceed for
sending the merchant request to payment Gateway server.
The resource file is not executable file. .cgn extension is given to identify the file
by the plugins only.
Process for usage of the resource file:
This file would be provided to the merchant along with the plugins and this has
to be placed on the merchant server and this patch should be specified in the
path (as specified in the Merchant Integration documents) from where the plugins
would read this file automatically.
Merchant has the responsibility to safeguard this file as this file is required for
connectivity to the payment gateway
This file should be controlled strict Access policies of the Merchant Site and
should not be shared to any unauthorized user/system other than the production
system which is used for connecting to Payment Gateway.
The Merchant should ensure that the following points are addressed to maintain
the security aspects for Resource file
Resource File Security Document

1. All access to storage devices/ media must be restricted to authorized personnel only. A list of
people authorized to access backup media must be maintained.
2. The resource file should not be available in any other system/location other than the specified
location of the Config file.
3. Access to the production system and the resource file should be restricted to authorized
personnel only.
4. All access to this file should be audited by the merchant.
5. Any other security guidelines that the Bank would need to enforce as per the policies defined
by Card associations/Bank.

HostedPaymentBuy.php

<?php
$path_e24class = getcwd(). ‘\\’;
/*echo getcwd() . “\n”;*/
java_require($path_e24class);
$pipe = new Java(“e24PaymentPipe”);
$amount = 100;
$pipe->setCurrency(“356″);
$pipe->setLanguage(“USA”);
$pipe->setAction(“1″);
$pipe->setResponseURL(“http://221.134.82.211:9000/merchant/intermediate.php”);
$pipe->setErrorURL(“http://221.134.82.211:9000/merchant/failure.php”);
$pipe->setResourcePath(“C:\\Resource\\10023\\”);
$pipe->setAlias(“ebs”);
$pipe->setAmt($amount);
$pipe->setTrackId(“786150″);
$status = $pipe->performPaymentInitialization();
$payID = $pipe->getPaymentId();
$payURL = $pipe->getPaymentPage();
$urlToRedirect = $payURL . ‘?PaymentID=’ . $payID;
header(‘Location: ‘. $urlToRedirect);
?>

failure.php

<HTML>
<HTML>
<HEAD>
<TITLE>Failure Page</TITLE>
</HEAD>
<BODY>
<center>

<b><font size=5 color=”blue”> ERROR</font> </b>

<br><br><br>

<?php
echo “<font size=3 color=red>”;
echo “<b><br>”;
echo isset($_GET['result']) ? $_GET['result'] : ”;
?>
</b>
</center>
</HTML>

HostedPaymentDetails.php

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<HTML>
<HEAD>
<TITLE>Colors of Success</TITLE>
</HEAD>
<BODY>
<CENTER>
<TABLE border=”1″>
<TR>
<TD>SKU:</TD>
<TD>Description:</TD>
<TD>Unit Price:</TD>
<TD>Qty:</TD>
<TD>Price:</TD>
</TR>
<TR>
<TD><?php echo $_POST['SKU'];?></TD>
<TD><?php echo $_POST['NAME'];?></TD>
<TD><?php echo $_POST['PRICE'];?></TD>
<TD><?php echo $_POST['QTY'];?></TD>
<TD><?php echo $_POST['QTY'] * $_POST['PRICE'];?></TD>
</TR>
<TR>
<TD></TD><TD></TD><TD></TD>
<TD>Total Price:</TD>
<TD><?php echo $_POST['QTY'] * $_POST['PRICE'];?></TD>
</TR>
</TABLE>

<P>
<FONT size=”3″><B>Shipping Details:</B></FONT>
<HR>
<FORM name=”form_payment” ACTION=”HostedPaymentBuy.php” METHOD=”POST”>
<input type=”hidden” name=”AMOUNT” value=”<?php echo $_POST['QTY'] * $_POST['PRICE'];?>”>
<TABLE>
<TR>
<TD width=”30%”>Name:</TD>
<TD><input size=”20″ type=”text” name=”name”

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top