laravel-pay maintained by yansongda
Last update
2026/03/19 03:44
License
Require
- yansongda/pay ~3.7.0
- illuminate/support ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0
- illuminate/contracts ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0
Last update
2026/03/19 03:44
License
Require
- illuminate/support ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0
- illuminate/contracts ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0
- yansongda/pay ~3.7.0
Last update
2026/03/19 03:35
License
Require
- illuminate/support ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0
- illuminate/contracts ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0
- yansongda/pay ~3.7.0
Last update
2025/03/10 06:10
License
Require
- illuminate/support ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0
- illuminate/contracts ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0
- yansongda/pay ~3.7.0
Last update
2025/02/09 11:47
License
Require
- illuminate/support ^8.0 || ^9.0 || ^10.0 || ^11.0
- illuminate/contracts ^8.0 || ^9.0 || ^10.0 || ^11.0
- yansongda/pay ~3.7.0
Last update
2024/08/15 04:34
License
Require
- illuminate/support ^8.0 || ^9.0 || ^10.0 || ^11.0
- illuminate/contracts ^8.0 || ^9.0 || ^10.0 || ^11.0
- yansongda/pay ~3.7.0
Last update
2024/04/27 16:05
License
Require
- illuminate/support ^8.0 || ^9.0 || ^10.0 || ^11.0
- illuminate/contracts ^8.0 || ^9.0 || ^10.0 || ^11.0
- yansongda/pay ~3.7.0
Last update
2024/03/25 15:28
License
Require
- illuminate/support ^8.0 || ^9.0 || ^10.0 || ^11.0
- illuminate/contracts ^8.0 || ^9.0 || ^10.0 || ^11.0
- yansongda/pay ~3.6.0
Last update
2024/02/01 11:35
License
Require
- illuminate/support ^8.0 || ^9.0 || ^10.0
- illuminate/contracts ^8.0 || ^9.0 || ^10.0
- yansongda/pay ~3.6.0
Last update
2023/07/02 05:46
License
Require
- illuminate/support ^8.0 || ^9.0 || ^10.0
- illuminate/contracts ^8.0 || ^9.0 || ^10.0
- yansongda/pay ~3.5.0
Last update
2023/06/12 16:13
License
Require
- illuminate/support ^8.0 || ^9.0 || ^10.0
- illuminate/contracts ^8.0 || ^9.0 || ^10.0
- yansongda/pay ~3.4.0
Last update
2023/05/23 13:44
License
Require
- illuminate/support ^8.0 || ^9.0 || ^10.0
- illuminate/contracts ^8.0 || ^9.0 || ^10.0
- yansongda/pay ~3.3.0
Last update
2023/03/09 11:03
License
Require
- illuminate/support ^8.0 || ^9.0 || ^10.0
- illuminate/contracts ^8.0 || ^9.0 || ^10.0
- yansongda/pay ~3.2.0
Last update
2022/09/24 10:31
License
Require
- illuminate/support ^8.0 || ^9.0
- illuminate/contracts ^8.0 || ^9.0
- yansongda/pay ~3.2.0
Last update
2022/09/05 14:50
License
Require
- illuminate/support ^8.0 || ^9.0
- illuminate/contracts ^8.0 || ^9.0
- yansongda/pay ~3.2.0
Last update
2022/03/05 16:21
License
Require
- illuminate/support ^8.0 || ^9.0
- illuminate/contracts ^8.0 || ^9.0
- yansongda/pay ~3.1.0
Last update
2022/03/05 16:21
License
Require
- illuminate/support ^8.0 || ^9.0
- illuminate/contracts ^8.0 || ^9.0
- yansongda/pay ~3.1.0
Last update
2022/02/14 14:41
License
Require
- illuminate/support ^8.0 || ^9.0
- illuminate/contracts ^8.0 || ^9.0
- yansongda/pay ~3.0.0
Last update
2020/09/10 05:27
License
Require
- illuminate/support ^5.1 || ^6.0 || ^7.0 || ^8.0
- yansongda/pay ^2.0
Last update
2020/04/19 08:57
License
Require
- illuminate/support ^5.1 || ^6.0 || ^7.0
- yansongda/pay ^2.0
Last update
2020/04/03 16:01
License
Require
- illuminate/support ^5.1 || ^6.0 || ^7.0
- yansongda/pay ^2.0
Last update
2020/03/08 09:06
License
Require
- illuminate/support ^5.1 || ^6.0 || ^7.0
- yansongda/pay ^2.0
依赖
- php >= 8.0
- composer
- laravel || lumen >= 8.0
安装
composer require yansongda/laravel-pay:~3.7.0
laravel 用户
配置文件
php artisan vendor:publish --provider="Yansongda\LaravelPay\PayServiceProvider" --tag=laravel-pay
lumen 用户
配置文件
请手动复制配置文件
service provider
$app->register(Yansongda\LaravelPay\PayServiceProvider::class);
使用方法
支付宝
use Yansongda\LaravelPay\Facades\Pay;
$order = [
'out_trade_no' => time(),
'total_amount' => '1',
'subject' => 'test subject - 测试',
];
return Pay::alipay()->web($order);
// 下面这个方法也可以
// return Pay::web($order);
微信
use Yansongda\LaravelPay\Facades\Pay;
$order = [
'out_trade_no' => time(),
'body' => 'subject-测试',
'total_fee' => '1',
'openid' => 'onkVf1FjWS5SBIixxxxxxxxx',
];
$result = Pay::wechat()->mp($order);
抖音支付
use Yansongda\LaravelPay\Facades\Pay;
$order = [
'out_order_no' => date('YmdHis').mt_rand(1000, 9999),
'total_amount' => 1,
'subject' => '闫嵩达 - test - subject - 01',
'body' => '闫嵩达 - test - body - 01',
'valid_time' => 600,
'expand_order_info' => json_encode([
'original_delivery_fee' => 15,
'actual_delivery_fee' => 10
])
];
$result = Pay::douyin()->mini($order);
江苏银行(e融支付)
use Yansongda\LaravelPay\Facades\Pay;
$order = [
'outTradeNo' => time().'',
'proInfo' => 'subject-测试',
'totalFee'=> 1,
];
$result = Pay::jsb()->scan($order);
具体使用说明请传送至 https://github.com/yansongda/pay
License
MIT