Server IP : 103.191.208.50 / Your IP : 216.73.216.53 Web Server : LiteSpeed System : Linux orion.herosite.pro 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64 User : celkcksm ( 1031) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, popen, exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/celkcksm/php/../ecampus.ncriptech.com/application/libraries/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php if(!defined('BASEPATH')) exit('No direct script access allowed'); class Ccavenue { public function ccForm($param){ if(!empty($param)){ if((isset($param['key']) && isset($param['key_secret'])) && (!empty($param['key']) && !empty($param['key_secret']))){ }else{ return 'Keys are missing'; } } } public function ccRedirect($param){ $merchant_id='1883831'; $working_key='389B301AA85415B58464664B8F68F3A6';//Shared by CCAVENUES $access_code='AVLL90JL77CE60LLEC';//Shared by CCAVENUES // foreach ($param as $key => $value){ // $merchant_data.=$key.'='.$value.'&'; // } // $merchant_data='tid='.$param['tid'].'&merchant_id='.$merchant_id.'&order_id='.$param['order_id'].'&amount='.$param['amount'].'¤cy=INR&redirect_url='.$param['redirect_url'].'&cancel_url='.$param['cancel_url'].'&language=EN&integration_type=iframe_normal'; $merchant_data='merchant_id=1883831&order_id=SB312023083153_stuinst&amount=1.00¤cy=INR&language=EN&integration_type=iframe_normal'; $encrypted_data=encrypt($merchant_data,$working_key); // Method for encrypting the data. if($param['mode']=='TEST'){ //$_url='https://test.ccavenue.com'; $_url='https://secure.ccavenue.com'; }else if($param['mode']=='PROD'){ $_url='https://secure.ccavenue.com'; } $production_url='https://secure.ccavenue.com/transaction/transaction.do?command=initiateTransaction&encRequest='.$encrypted_data.'&access_code='.$access_code; //echo $production_url; echo '<iframe src="'.$production_url.'" id="paymentFrame" width="482" height="450" frameborder="0" scrolling="No" ></iframe>'; // echo $iframe; /* if(!empty($param)){ if((isset($param['key']) && isset($param['key_secret']) && isset($param['mid'])) && (!empty($param['key']) && !empty($param['key_secret']) && !empty($param['mid']))){ $merchant_data=$param['mid']; $working_key=$param['key'];//Shared by CCAVENUES $access_code=$param['key_secret'];//Shared by CCAVENUES foreach ($_POST as $key => $value){ $merchant_data.=$key.'='.$value.'&'; } $encrypted_data=encrypt($merchant_data,$working_key); // Method for encrypting the data. if($param['mode']=='TEST'){ //$_url='https://test.ccavenue.com'; $_url='https://secure.ccavenue.com'; }else if($param['mode']=='PROD'){ $_url='https://secure.ccavenue.com'; } $production_url=$_url.'/transaction/transaction.do?command=initiateTransaction&encRequest='.$encrypted_data.'&access_code='.$access_code; //echo $production_url; $iframe='<iframe src="'.$production_url.'" id="paymentFrame" width="482" height="450" frameborder="0" scrolling="No" ></iframe>'; // echo $iframe; return $iframe; }else{ return 'Keys are missing'; } } */ } public function ccResponse($param){ } }