PHP code example of kiezelpay / client

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

    

kiezelpay / client example snippets

 php
// Initiate App client
$app = new KiezelPay\Client\App($appId);

// Check payment status for specified user and device
$status = $app->status($accountToken, $deviceId);

// User is licensed
if ($status->isLicensed()) {
    // ...
}

// Payment code available
if ($status->isUnlicensed()) {
    // ...
}

// User is in trial period
if ($status->isTrial()) {
    // ...
}