This package offers an easy to use Laravel wrapper for Gifty.nl gift cards / vouchers using the publicly available balance checker API.
You can install the package via composer:
composer require sidvanvliet/laravel-gifty-vouchers
$voucher = new Sidvanvliet\LaravelGiftyVouchers\Voucher("JW96–S75S-9FV8–L9S4");
Available functions
Function | Return type | Description |
---|---|---|
isValid() | bool | Returns whether or not the voucher is valid |
balance() | float | Returns the amount of credit on the voucher |
currency() | ?string | Returns the currency (e.x. EUR) |
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email sid@gifty.nl instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.