我正在我的网站中集成ccavenue
。我提交了以下变量。我还添加了重定向的URL。但它没有工作,因为它没有在交易后重定向,任何人都可以告诉我,当我付款时如何获得通知?
<?php
$currency = $_SESSION['cart'][0]['o_currency'];
if($currency_sign == '₹') {
$Merchant_Id = "merchant_id_enter";
$Amount = 1;
//unique Id that should be passed to payment gateway
$Order_Id = $allDetails[0]['o_id_text'];
$WorkingKey = "l3t6r8dichpgxai7eg";//Given to merchant by ccavenue
$Redirect_Url = HTTP_ROOT.'register/success';
require_once('lib/ccavenueValidate.php');
$Checksum = getCheckSum($Merchant_Id, $Amount,
$Order_Id , $Redirect_Url, $WorkingKey);
?>
<form id="ccavenue" method="post"
action="https://www.ccavenue.com/shopzone/cc_details.jsp">
<input type="hidden" name="Merchant_Id" value="<?php echo $Merchant_Id?>">
<input type="hidden" name="Amount" value="<?php echo $Amount; ?>">
<input type="hidden" name="Order_Id" value="<?php echo $Order_Id; ?>">
<input type="hidden" name="Redirect_Url" value="<? echo HTTP_ROOT.'register/success'; ?>">
<input type="hidden" name="TxnType" value="A">
<input type="hidden" name="ActionID" value="TXN">
<input type="hidden" name="Checksum" value="<?php echo $Checksum; ?>">
<input type="hidden" name="billing_cust_name" value="<?php echo $allDetails[0]['o_b_first_name'].' '.$allDetails[0]['o_b_last_name']?>">
<input type="hidden" name="billing_cust_address" value="<?php echo $allDetails[0]['o_address1']?>">
<input type="hidden" name="billing_cust_country" value="<?php echo $allDetails[0]['o_country'];?>">
<input type="hidden" name="billing_cust_state" value="<?php echo $allDetails[0]['o_state'];?>">
<input type="hidden" name="billing_cust_city" value="<?php echo $allDetails[0]['o_city'];?>">
<input type="hidden" name="billing_zip" value="<?php echo $allDetails[0]['o_zipcode'];?>">
<input type="hidden" name="billing_cust_tel" value=""> <!--Pass Customer Phone No-->
<input type="hidden" name="billing_cust_email" value="<?php echo $allDetails[0]['o_buyers_email_id']; ?>" />
</form>
<?php } ?>