yomafleet/payment-provider
最新稳定版本:v2.0.0
Composer 安装命令:
composer require yomafleet/payment-provider
包简介
Yoma Fleet Payment Gateway Package for Visa, Master, JCB, Wave , Kpay,etc...
README 文档
README
Require this package in your composer.json and update composer.
composer require yomafleet/payment-provider
Installation
Laravel 5.x:
After updating composer, add the ServiceProvider to the providers array in config/app.php
Yomafleet\PaymentProvider\PaymentGatewayServiceProvider::class,
You can optionally use the facade for shorter code. Add this to your facades:
'Gateway' => Yomafleet\PaymentProvider\Facades\Gateway::class,
Using
Use the facade: use Yomafleet\PaymentProvider\Facades\Gateway;
$result = Gateway::request();
return $result->verify($data);
Use php artisan vendor:publish to create a config file located at config/payment.php which will allow you to define local configurations to change some settings (default paper etc).
You can also use your ConfigProvider to set certain keys.
Configuration
The defaults configuration settings are set in config/payment.php. Copy this file to your own config directory to modify the values. You can publish the config using this command:
php artisan vendor:publish --provider="Yomafleet\PaymentProvider\PaymentGatewayServiceProvider"
Testing
$ ./vendor/bin/phpunit
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 6k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-12-23