deniztezcan/laravel-liqpay

Laravel的LiqPay

1.0.0 2020-09-09 13:44 UTC

This package is auto-updated.

Last update: 2024-09-07 22:54:04 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License Maintainability

为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_PUBLICLIQPAY_PRIVATE