The only thing I can think of right now is that you might not have loaded the form helper, but I'm not sure if it is used for this. you can do it in/config/autoload.php
For example, I have this:
$autoload['helper'] = array('url', 'form', 'html', 'site_helper', 'upload_helper');
you can also load it into your function as follows:
function send_instant_to_paypal()
{
$this->load->helper('form');
print_r($_POST);
echo '<hr />';
print_r($this->input->post());
echo '<hr />';
$id_booking = $this->input->post('id_booking');
$title = $this->input->post('basket_description');
$cost = ($this->input->post('fee_per_min') * $this->input->post('amount'));
echo $id_booking;
echo $title
echo $cost
}
source
share