Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dedemao/laravel-admin-payjs
适用于laravel admin的payjs支付插件
https://github.com/dedemao/laravel-admin-payjs
Last synced: about 1 month ago
JSON representation
适用于laravel admin的payjs支付插件
- Host: GitHub
- URL: https://github.com/dedemao/laravel-admin-payjs
- Owner: dedemao
- License: mit
- Created: 2020-10-28T06:29:07.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-28T13:12:57.000Z (about 4 years ago)
- Last Synced: 2024-11-02T18:41:44.875Z (about 1 month ago)
- Language: PHP
- Size: 33.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-laravel-admin - payjs - 适用于laravel admin的payjs支付插件 (扩展包 / 工具类扩展包)
README
适用于laravel admin的payjs支付插件
======
## 前提
已安装好laravel及laravel admin## 安装
```
composer require dedemao/laravel-admin-payjs
php artisan payjs:install -m
````
执行以上命令后,将自动创建数据库表、自动生成后台相关菜单等,登录后台填写相关配置信息即可使用。## 卸载
```
composer remove dedemao/laravel-admin-payjs
php artisan payjs:uninstall -m
````## 使用
### 如何支付
指定订单金额:
http://yourname/pay/index?total_fee=0.01指定订单号:
http://yourname/pay/index?total_fee=0.01&out_trade_no=123456指定订单标题:
http://yourname/pay/index?total_fee=0.01&subject=测试指定支付通道:
http://yourname/pay/index?total_fee=0.01&pay_channel=weixin指定使用JSAPI支付
http://yourname/pay/index?total_fee=0.01&pay_mode=jsapi指定使用收银台支付
http://yourname/pay/index?total_fee=0.01&pay_mode=cashier全都指定:
http://yourname/index?out_trade_no=123456&total_fee=0.01&subject=测试&pay_channel=weixin### 异步通知
异步通知在pay/notify中### 退款
退款请参考OrderService中的refund方法## 演示截图
### 支付设置
### 订单列表