CodeIgniter Forums
Checkout.com Payment gateway integration - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Checkout.com Payment gateway integration (/showthread.php?tid=64909)



Checkout.com Payment gateway integration - ImadAlavi - 04-10-2016

I am using checkout.com payment gateway. I want to integrate it to my website but in their developer area I am not able to find any suitable solution to integrate it with codeigniter. Below is the developer area of checkout.com
http://developers.checkout.com/
Any help in this regard will be very helpful. Thank you.


RE: Checkout.com Payment gateway integration - PaulD - 04-10-2016

I would create a helper and it would look something like:

PHP Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

function 
checkout()
{
 
  require_once('/server/path/to/assets/checkout/release/v1.0/autoload.php');


In an assets folder, create a folder called checkout and put their php library into it.

Then you can use it by loading

PHP Code:
$this->load->helper('checkout'); 

Then all their functions are available for you to use in your controller.

Hope that helps,

Paul.