aslong / yun-pay
云账户管理
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/aslong/yun-pay
Requires
- php: >=7.1.3
- ext-openssl: *
- guzzlehttp/guzzle: ^6.3
- laravel/framework: *
- pimple/pimple: ^3.0
- dev-master
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.0
- dev-dependabot/composer/symfony/http-kernel-4.4.50
- dev-dependabot/composer/guzzlehttp/guzzle-6.5.8
- dev-dependabot/composer/guzzlehttp/psr7-1.8.5
- dev-dependabot/composer/league/flysystem-1.1.4
- dev-dependabot/composer/laravel/framework-6.18.43
This package is auto-updated.
Last update: 2025-09-29 02:09:31 UTC
README
1.安装
$ composer require aslong/yun-pay
php artisan vendor:publish --provider="AsLong\YunPay\ServiceProvider"
2.使用
<?php $app = app('yun_pay'); // 查询余额 $app->account->balance(); // 查询一条订单 $app->order->query($order_id, $channel = '银行卡'); // 银行卡下单 $app->order->realtime(); $app->order->alipay(); $app->order->wxpay(); $app->order->cancel(); $app->order->receipt(); $app->auth->idCard($cardNo, $realName); $app->data->order($date); $app->data->bill($date); $app->data->record($begin_at, $end_at); $app->invoice->stat($year); $app->invoice->stat($year);
通知处理
<?php $app = app('yun_pay'); return $app->notify(function($message, $fail) { dd($message); return true; $fail('失败'); });