2014-12-12 1 views
0

안녕하십니까, CCAVENUE 결제 게이트웨이 방법을 웹 사이트에 추가 할 때 문제가 있습니다 ... ccavenue 사이트에서 키트를 다운로드했는데 PHP 키트를 사용하고 있습니다. .. 암호화 키 (32 비트)와 판매자 ID를 가지고 코드에 넣고 코드를 테스트하기 위해 직접 데이터를 입력하십시오. 하지만 서버 코드를 실행할 때 "친절하게 암호화 기능을 활성화하고 [email protected]으로 전자 메일을 보내서 테스트 IP 주소를 수집하십시오. 테스트 IP를 허용 목록에 등록 된 URL과 등록 된 URL로 기재하십시오." 나는 이미 열쇠가있는 URL을 가지고 있으며이 URL을 http://www.ccavenue.com/?_event_transid=2182034325로 리다이렉트한다. 아무런 지불 옵션도 없다. 아무도 내가 실수를하고있는 곳을 말해 줄 수 없다. 어떤 도움을 주셔서 감사합니다 ...CCAVENUE 통합시 거래 페이지 가져 오기

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 [email protected] 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 [email protected], 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> 

답변

1

호스트/IP 주소를 CCAvenue에 등록해야합니다. 다음 URL로 이동 : https://login.ccavenue.com/jsp/merchant/merchantLogin.jsp

판매자 계정에 로그인하십시오.

그런 다음 판매자 ID & 액세스 코드가 표시된 창으로 이동하십시오.

"웹 사이트 URL"섹션을 확인하십시오.

CCAvenue에 요청을 보내기 위해 사용하는 호스트/IP 주소가 있어야합니다. 지원팀에 문의하지 않고 호스트을 구성하도록 요청하십시오.

그런 다음 등록 "웹 사이트 URL"

희망이 도움이 적합 키 액세스 코드 & 암호화를 사용합니다.

+0

답변 주셔서 감사합니다 ... 시도해 보겠습니다. – user3193751

+0

도움이된다면 답을 올바른 것으로 표시하십시오. –

+0

@tharindu_DG 응답 매개 변수 스레드를 읽는 방법에 대한 아이디어는 http://stackoverflow.com/questions/37152613/ccavenue-get-payment-status-from-response-url –