PHP code example of checkout / checkout-php-api

1. Go to this page and download the library: Download checkout/checkout-php-api 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/ */

    

checkout / checkout-php-api example snippets


composer 

"    "php": ">=5.2.4",
    "checkout/checkout-php-api": "1.2.18"
},
html
html
 __construct($secretKey, $env = 'sandbox' ,$debugMode = false, $connectTimeout = 60, $readTimeout =60)

 //Example:
use com\checkout;
$apiClient = new checkout\ApiClient('sk_test_XXXXXXXXXXXX');