| Package Data | |
|---|---|
| Maintainer Username: | ammezie |
| Maintainer Contact: | meziemichael@gmail.com (Chimezie Enyinnaya) |
| Package Create Date: | 2016-12-19 |
| Package Last Update: | 2016-12-24 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-26 03:04:17 |
| Package Statistics | |
|---|---|
| Total Downloads: | 31 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 3 |
| Total Watchers: | 1 |
| Total Forks: | 1 |
| Total Open Issues: | 0 |
This is a Laravel 5 wrapper for MalikAbiola Paystack Lib.
Add the following to your composer.json file
"mabiola/paystack-php-lib" : "~1.0"
"ammezie/paystack-laravel" : "1.0.*"
and run composer install or composer update.
Then add Ammezie\Paystack\PaystackServiceProvider to the providers array in your config/app.php:
Ammezie\Paystack\PaystackServiceProvider::class
Also, register the Facade like so:
'aliases' => [
...
'Paystack' => Ammezie\Paystack\Facades\Paystack::class,
...
]
You can publish the configuration file using this command:
php artisan vendor:publish --provider="Ammezie\Paystack\PaystackServiceProvider"
A configuration file named paystack.php will be placed in your config directory.
Then set Paystack mode and the corresponding API Keys.
You can use the facade:
Paystack::startOneTimeTransaction('10000', 'me@example.com');
For more information on using this package, see https://github.com/MalikAbiola/paystack-php-lib repository.