arturishe21 / laravel-liqpay
Laravel 的 LiqPay
1.03
2022-11-19 17:13 UTC
Requires
- guzzlehttp/guzzle: ^7.0
- illuminate/support: 5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0|^9.0
- nesbot/carbon: ^2.16
Requires (Dev)
- symfony/var-dumper: ^6.0
This package is not auto-updated.
Last update: 2024-09-22 20:38:13 UTC
README
为 LiqPay PHP SDK 制作的 Laravel 包。
安装
composer require arturishe21/laravel-liqpay
在 config/app.php
中的 providers 数组中添加 ServiceProvider
'providers' => [ //other things here Arturishe21\LiqPay\LiqPayServiceProvider::class, ];
将外观添加到 facades 数组
'aliases' => [ //other things here 'LiqPay' => Arturishe21\LiqPay\Facades\LiqPay::class, ];
最后,发布配置文件
php artisan vendor:publish --provider="Arturishe21\LiqPay\LiqPayServiceProvider"
配置
请在 .env
文件中设置您的 API:LIQPAY_PUBLIC
和 LIQPAY_PRIVATE