Welcome Guest, Not a member yet? Register   Sign In
Checkout.com Payment gateway integration
#2

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.
Reply


Messages In This Thread
RE: Checkout.com Payment gateway integration - by PaulD - 04-10-2016, 08:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB