mallariel / laravelliqpay
Laravel的Liqpay
1.0.1
2022-02-01 09:10 UTC
Requires
- liqpay/liqpay: ^1.2
Requires (Dev)
- orchestra/testbench: ^6.24
README
Laravel LiqPay
一个用于LiqPay PHP SDK的Laravel包。
安装
composer require mallariel/laravelliqpay
将ServiceProvider添加到config/app.php
中的providers数组
'providers' => [ //other things here Mallariel\LaravelLiqPay\LaravelLiqPayServiceProvider::class, ];
将外观添加到facades数组
'aliases' => [ //other things here 'LaravelLiqpay' => Mallariel\LaravelLiqPay\Facades\LaravelLiqPay::class, ];
最后,发布配置文件
php artisan vendor:publish --provider="Mallariel\LaravelLiqPay\LaravelLiqPayServiceProvider"
配置
请设置您的API:LIQPAY_PUBLIC
和 LIQPAY_PRIVATE
在.env
文件中。
此外,您还可以设置货币:LIQPAY_CURRENCIES