I currently working on integrating PayPal express checkout for digital goods using Codeigniter. I went through PayPal wizard which creates some HTML and JavaScript for the button and also few PHP files are created. However since the file are pure PHP and neither controllers or models I am not sure how to call them. HTML code has some form action:
<form action='checkout.php' METHOD='POST'>
Now where should I put this checkout PHP in models or view and can I call it via controller using something:
www.myweb.com/index.php/mypalpal_controller/paypal_function
And inside controller function should the call go like:
$this->user_model->checkout;
And would the checkout.php require further modification so that everything is inside the model class? Thanks.