kiezelpay/client

API Client for the KiezelPay Pebble app payment system.

v1.0.1 2016-04-18 23:07 UTC

This package is not auto-updated.

Last update: 2024-12-19 01:42:13 UTC


README

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.

Install

Via Composer

$ composer require kiezelpay/client

Usage

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

Please follow the PSR-2 Coding Standard, write tests for any new or changed code, and document any changes.

License

The MIT License (MIT). Please see LICENSE.md for more information.

Security

If you discover any security related issues, please email stephen@rees-carter.net instead of using the issue tracker.

Change log

2016-04-19 - v1.0.1

Fixes

  • Bugfix: Guzzle v6 doesn't support ->json().

2016-04-19 - v1.0.0 - Initial Release

Added

  • Payment Status API check.