kiezelpay / client
API Client for the KiezelPay Pebble app payment system.
Installs: 1 104
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 1
Open Issues: 0
Requires
- php: ~5.5|~7.0
- guzzlehttp/guzzle: ^5.2|^6.2
- mockery/mockery: ^0.9.4
Requires (Dev)
- phpunit/phpunit: ^5.3
Suggests
- valorin/pinpusher: Provides an easy way to send Pebble Timeline pins from your application.
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.