PHPackages                             wyzheng/pay-model - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. wyzheng/pay-model

ActiveLibrary[Payment Processing](/categories/payments)

wyzheng/pay-model
=================

一个适用于laravel快速开发付款、退款和转账功能的工具包

v1.0.1(1y ago)110MITPHPPHP ^8.2

Since Oct 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/wyzheng1997/pay-model)[ Packagist](https://packagist.org/packages/wyzheng/pay-model)[ RSS](/packages/wyzheng-pay-model/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

pay-model
=========

[](#pay-model)

适用于laravel快速开发付款（收款）、退款和转账功能的工具包

> 此扩展包是把所有的支付场景都粗暴的分为收款、转账和退款三个类别。通过支付通道（channel）和任务（job）将支付款流程和业务逻辑解耦，让开发者更专注于业务本身。

安装
==

[](#安装)

```
composer require wyzheng/pay-model

php artisan vendor:publish --provider="Ugly\Pay\ServiceProvider"
php artisan migrate
```

使用方法
====

[](#使用方法)

首先需要创建一个支付通道，根据业务需要编写receive、refund、transfer方法。

```
