簡體   English   中英

集成CCAVENUE付款方式時未獲得任何交易頁面

[英]Not Getting any transaction page when integrating CCAVENUE Payment Method

您好先生/女士,向我的網站添加CCAVENUE付款網關方法時遇到問題...我從ccavenue網站下載了該工具包,而我正在使用PHP工具包...我得到了加密密鑰(32位)和我的商戶ID,並將其放入代碼中,然后將一些數據直接放在其中以測試代碼。 但是,當我在服務器上運行代碼時,它顯示“請激活加密功能並通過發送電子郵件至service@ccavenue.com收集測試IP地址,請提及您的測試IP列入白名單和注冊的URL。” 我已經有了帶密鑰的URL,它會將我重定向到http://www.ccavenue.com/?_event_transid=2182034325這個URL且沒有付款選項,我到那里了....所以有人可以告訴我我在哪里做錯... 感謝您的任何幫助

Params.php file-->
    <form method="post" action="checkout.php">
        <table>
            <tr>
                <td>Amount : </td><td><input type="text" name="Amount" value="10.00"></td>
            </tr>
            <tr>
                <td>Order Id : </td><td><input type="text" name="Order_Id" value="test_r1234"></td>
            </tr>
            <tr>
                <td>Redirect URL : </td><td><input type="text" name="Redirect_Url" value="redirecturl.php"></td>
            </tr>

            The Billing details of the customer have to be mandatorily sent via the below mentioned parameters. Please note this has to be authentic data else the transaction would be rejected by the risk team.

            <tr>
                <td>Bill Name : </td><td><input type="text" name="billing_cust_name" value="test"></td>
            </tr>
            <tr>
                <td>Bill Address : </td><td><input type="text" name="billing_cust_address" value="testtesttesttest"></td>
            </tr>
            <tr>
                <td>Bill Country : </td><td><input type="text" name="billing_cust_country" value="test"></td>
            </tr>
            <tr>
                <td>Bill State : </td><td><input type="text" name="billing_cust_state" value="test"></td>
            </tr>
            <tr>
                <td>Bill City : </td><td><input type="text" name="billing_city" value="test"></td>
            </tr>
            <tr>
                <td>Bill Zip : </td><td><input type="text" name="billing_zip" value="400064"></td>
            </tr>
            <tr>
                <td>Bill Tel : </td><td><input type="text" name="billing_cust_tel" value="test"></td>
            </tr>
            <tr>
                <td>Bill Email : </td><td><input type="text" name="billing_cust_email" value="test"></td>
            </tr>
            <tr>
                <td>Ship Name : </td><td><input type="text" name="delivery_cust_name" value="test"></td>
            </tr>
            <tr>
                <td>Ship Address : </td><td><input type="text" name="delivery_cust_address" value="test"></td>
            </tr>
            <tr>
                <td>Ship Country : </td><td><input type="text" name="delivery_cust_country" value="test"></td>
            </tr>
            <tr>
                <td>Ship State : </td><td><input type="text" name="delivery_cust_state" value="test"></td>
            </tr>
            <tr>
                <td>delivery city : </td><td><input type="text" name="delivery_city" value="test"></td>
            </tr>
            <tr>
                <td>Ship Zip : </td><td><input type="text" name="delivery_zip" value="400064"></td>
            </tr>
            <tr>
                <td>Ship Tel : </td><td><input type="text" name="delivery_cust_tel" value="654564465"></td>
            </tr>
            <tr>
                <td>Delivery Notes : </td><td><input type="text" name="delivery_cust_notes" value="test"></td>
            </tr>
             <tr>
                <td>PayType: [dummy values, please contact service@ccavenue.com for actual bank short codes]: </td><td><input type="text" name="payType" value=""></td>
            </tr>
            <tr>
                <td>Billing Page Heading : </td><td><input type="text" name="billingPageHeading" value=""></td>
            </tr>



    </td>

                </tr>


            <tr>
                <td colspan='2' align='center'>
                    <INPUT TYPE="submit" value="submit">
                </td>
            </tr>
        </table>
    </form>

2. checkout.php

<?php
/*
    This is the sample Checkout Page JSP script. It can be directly used for integration with CCAvenue if your application is developed in JSP. You need to simply change the variables to match your variables as well as insert routines (if any) for handling a successful or unsuccessful transaction.
*/
?>

<html>
    <head><title>Sub-merchant checkout page</title></head>
    <body>

    <?php
        require("libFunctions.php");
        $Merchant_Id = "$Merchant_IDValue"; //This id(also User_Id)  available at "Generate Working Key" of "Settings & Options"
        $Order_Id = $_REQUEST['Order_Id'];      //your script should substitute the order description here in the quotes provided here
        $Amount = $_REQUEST['Amount'];          //your script should substitute the amount here in the quotes provided here
        $Redirect_Url = "$my_site"; //your redirect URL where your customer will be redirected after authorisation from CCAvenue
        $WorkingKey = "$Work_Key";      //put in the 32 bit alphanumeric key in the quotes provided here.Please note that get this key login to your 
        $ccaRequest="";
        $pname="";
        $pvalue="";                 //CCAvenue merchant account and visit the "Generate Working Key" section at the "Settings & Options" page. 

        $Checksum = getChecksum($Merchant_Id, $Order_Id, $Amount, $Redirect_Url, $WorkingKey);
        $keys = array_keys($_REQUEST);
        for($index=0;$index<sizeof($keys);$index++)
        {
            $pname = "".$keys[$index];
            $pvalue = $_REQUEST[$pname];
            $ccaRequest .= $pname . "=" . $pvalue . "&";
        }
        $ccaRequest .= "Checksum=".$Checksum;
        exec("java -jar ccavutil.jar  $WorkingKey \"$ccaRequest\" enc",$encRequest);
    ?>
 Kindly activate the encryption feature and collect the TEST IP address by sending an email to service@ccavenue.com, please mention your TEST IP to be whitelisted and your registered URL. 

            <form method="post" name="redirect" action="http://www.ccavenue.com/shopzone/cc_details.jsp">   

            <input type=hidden name=encRequest value="<?php if(is_array($encRequest))echo $encRequest[0]; ?>">
            <input type=hidden name=Merchant_Id value="<?php echo $_REQUEST['Merchant_Id'] ?>">
        </form>
    </body> 
    <script language='javascript'>document.redirect.submit();</script>
</html>

您必須在CCAvenue中注冊主機/ IP地址。 轉到此URL: https : //login.ccavenue.com/jsp/merchant/merchantLogin.jsp

登錄到您的商家帳戶。

然后轉到顯示商戶ID和訪問代碼的窗口。

檢查“ 網站URL ”部分。

它應該包含您用來向CCAvenue發送請求的主機/ IP地址。 如果沒有聯系支持人員,請他們配置主機

然后對注冊的“ 網站URL ”使用適當的訪問代碼和加密密鑰。

希望這可以幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM