deniztezcan / laravel-liqpay
Laravel的LiqPay
1.0.0
2020-09-09 13:44 UTC
Requires
- illuminate/support: 5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0
- nesbot/carbon: ^2.16
This package is auto-updated.
Last update: 2024-09-07 22:54:04 UTC
README
为LiqPay PHP SDK提供Laravel包。
安装
composer require deniztezcan/laravel-liqpay
在config/app.php
中向providers数组添加ServiceProvider
'providers' => [ //other things here DenizTezcan\LiqPay\LiqPayServiceProvider::class, ];
将外观添加到facades数组
'aliases' => [ //other things here 'LiqPay' => DenizTezcan\LiqPay\Facades\LiqPay::class, ];
最后,发布配置文件
php artisan vendor:publish --provider="DenizTezcan\LiqPay\LiqPayServiceProvider"
配置
请设置您的API:在.env
文件中设置LIQPAY_PUBLIC
和LIQPAY_PRIVATE