ammezie/paystack-laravel
Composer 安装命令:
composer require ammezie/paystack-laravel
包简介
Laravel 5 Package for Paystack
关键字:
README 文档
README
This is a Laravel 5 wrapper for MalikAbiola Paystack Lib.
Requirements
- PHP 5.6+
- 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', 'me@example.com');
For more information on using this package, see https://github.com/MalikAbiola/paystack-php-lib repository.
统计信息
- 总下载量: 31
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-12-20