title: how to integrate paypal with codeigniter?
body: <p>I'm trying to integrate PayPal payment with my codeigniter project. My project is about a dating site, in which two different users interact with each other. So I'm selling plans, on the based of which users will be provided access to send messages to to other for the that period of time. For that i have developed a very simple page containing radio buttons to choose from different plans.
  These are the following plans</p>
  
  <blockquote>
    <ul>
    <li>one month (<code>$2</code>)</li>
    <li>Two month (<code>$4</code>)  </li>
    <li>Three month (<code>$6</code>)</li>
    <li>Four month (<code>$8</code>)</li>
    <li>Five month (<code>$10</code>)</li>
    </ul>
  </blockquote>
  
  <p>and so on</p>
  
  <blockquote>
    <ul>
    <li>Six month (<code>$12</code>)</li>
    </ul>
  </blockquote>
  
  <p>So, user can choose anyone plan from the above and can then proceed further to pay the amount on PayPal. This page will be available to user who have accounts on our site.
  so we can transfer all the details of current user to PayPal, such as -- name,email,etc..</p>
  
  <p>I have tried reading many articles on how to integrate paypal but none of them helped me.
  As I'm new to codeigniter.</p>
  
  <p>I have also created Paypal and sandbox account on paypal. I downloaded php-toolkit from sourceforge.net and used it independently, then it runs properly. but when i try to implement in codeigniter, it does not take anywhere.</p>
  
  <p>Please help me !!</p>
  
  <p><strong>EDIT :</strong></p>
  
  <pre><code>&lt;?php 
  
      //Configuration File
      include_once APPPATH.'../php_paypal/includes/config.inc.php'; 
  
      //Global Configuration File
      include_once APPPATH.'../php_paypal/includes/global_config.inc.php';
  
  ?&gt; 
  &lt;?php echo form_open('https://www.sandbox.paypal.com/cgi-bin/webscr');?&gt;   
  
   &lt;input type="hidden" name="amount" value="9.95"&gt;
   &lt;input type="hidden" name="item_name" value="Test Payment"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>This is what i'm simply trying to create. Earlier i tried to use "process.php" in the form action, but i was getting URL error in codeigniter. So i thought why not use this way. I know there are function responsible which are sending values to paypal. But through this action method. I'm being redirected to simple paypal page.</p>