https://github.com/ammezie/paystack-laravel
Laravel 5 Package for Paystack https://paystack.co
https://github.com/ammezie/paystack-laravel
Last synced: 16 days ago
JSON representation
Laravel 5 Package for Paystack https://paystack.co
- Host: GitHub
- URL: https://github.com/ammezie/paystack-laravel
- Owner: ammezie
- License: mit
- Created: 2016-12-19T18:58:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-24T13:52:48.000Z (over 8 years ago)
- Last Synced: 2025-04-10T11:27:16.350Z (20 days ago)
- Language: PHP
- Size: 36.1 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Paystack Laravel
[](LICENSE.md)
[](https://travis-ci.org/ammezie/paystack-laravel)
[](https://scrutinizer-ci.com/g/ammezie/paystack-laravel)
[](https://styleci.io/repos/76888914)
[](https://packagist.org/packages/ammezie/paystack-laravel)This is a Laravel 5 wrapper for [MalikAbiola Paystack Lib](https://github.com/MalikAbiola/paystack-php-lib).
## Requirements
- PHP 5.6+
- [Composer](https://getcomposer.org/doc/00-intro.md "Composer")## Installation
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,
...
]## Configuration
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.
## Usage
You can use the facade:
Paystack::startOneTimeTransaction('10000', '[email protected]');
For more information on using this package, see [https://github.com/MalikAbiola/paystack-php-lib](https://github.com/MalikAbiola/paystack-php-lib) repository.