我也是codeigniter和ccavenue的新手,所以我正在尝试使用像这样的codeigniter将ccavenue集成到我的网站
我有一个表格,我将其作为操作发送给控制器,然后将所有参数从控制器传递到ccavenue requesthandler.php
我现在正在添加代码
我尝试了htmlentites和其他所有命中方法,但我不相信自己无法将&currency打印到一个网站,该网站始终会转换并给我符号和cy
FORM
<form action="<?=base_url()?>index.php/main/payment_checkout" method="post">
payment_checkout page (main controller)
$data_pag=array();
$data_pag['tid']='0802';
$data_pag['merchant_id']='222';
$data_pag['order_id']='2202';
$data_pag['amount']='22.00';
$data_pag['currency']='INR'; (THIS IS CAUSE THE ISSUE)
$data_pag['language']='EN';
$getcart_value=array();
$getcart_value['data_pag']=$data_pag;
$this->load->view('ccavenue.php',$getcart_value);
ccavenue page ..
$working_key='87A14C6E8943FF1A5F573116E41B9508';//Shared by CCAVENUES
$access_code='AVXV85GF75AF22VXFA';//Shared by CCAVENUES
$merchant_data='22080';
foreach ($_POST as $key => $value){
$merchant_data.=$key.'='.$value.'&';
}
$ merchant_data ..该变量的值应为&currency,但始终都会对其进行转换
我希望将$ merchant_data作为&currency而不使用double &&或etc,因为它不起作用
请在这里帮我一下