PHP code example of klarna / kco_rest

1. Go to this page and download the library: Download klarna/kco_rest library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

klarna / kco_rest example snippets









// some code here
define('DEBUG_SDK', true);
// some code here
shell
git clone [email protected]:klarna/kco_rest_php.git /path/to/some/folder/kco_rest_php
shell
$ DEBUG_SDK=true php <your_program.php>
shell
$ export DEBUG_SDK=1
$ php <your_program.php>