KiezelPay PHP Client
The official API Client for the KiezelPay Pebble app payment system.
Currently supports checking the payment status of a user, and providing the payment code, trial expiry, and licensed status., (*1)
Install
Via Composer, (*2)
``` bash
$ composer require kiezelpay/client, (*3)
## Usage
``` 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()) {
// ...
}
Contributing
Contributions are welcome, and we accept contributions via Pull Requests., (*4)
Please follow the PSR-2 Coding Standard,
write tests for any new or changed code, and document any changes., (*5)
License
The MIT License (MIT). Please see LICENSE.md for more information., (*6)
Security
If you discover any security related issues, please email stephen@rees-carter.net instead of using the issue tracker., (*7)
Change log
2016-04-19 - v1.0.1
Fixes, (*8)
- Bugfix: Guzzle v6 doesn't support
->json().
2016-04-19 - v1.0.0 - Initial Release
Added, (*9)
- Payment Status API check.