mirror of
https://github.com/Varorbc/PaySharp.git
synced 2026-10-22 08:45:54 +08:00
128 lines
3.9 KiB
Markdown
128 lines
3.9 KiB
Markdown
# PaySharp<img src="https://github.com/Varorbc/PaySharp/raw/master/logo.png" width="50px" height="50px">
|
|
---
|
|
|
|
PaySharp是一个支持多商户多种支付方式的跨平台网关处理类库,使用PaySharp可以简化订单的创建、查询、退款和接收网关返回的支付通知等操作。
|
|
|
|
目前支持的支付网关有:支付宝(Alipay)、微信支付(Wechatpay)、中国银联(Unionpay)、QQ钱包支付(Qpay)、通联收银宝(Allinpay)
|
|
|
|
### 1.支付宝:
|
|
|
|
##### 支持的支付方式:
|
|
|
|
移动支付(App)、手机网站支付(Wap)、电脑网站支付(Web)、小程序支付(Applet)、条码支付(Barcode)、扫码支付(Scan)
|
|
|
|
##### 支持的辅助接口:
|
|
|
|
查询、退款、退款查询、撤销、关闭、对账单下载、转账(Transfer)、转账查询(TransferQuery)
|
|
|
|
### 2.微信:
|
|
|
|
##### 支持的支付方式:
|
|
|
|
移动支付(App)、手机网站支付(Wap)、公众号支付(Public)、小程序支付(Applet)、条码支付(Barcode)、扫码支付(Scan)
|
|
|
|
##### 支持的辅助接口:
|
|
|
|
查询、退款、退款查询、撤销、关闭、对账单下载、资金账单下载、
|
|
|
|
转账(Transfer)、转账查询(TransferQuery)、转账到银行卡(TransferToBank)、转账到银行卡查询(TransferToBank)Query)
|
|
|
|
### 3.银联:
|
|
|
|
##### 支持的支付方式:
|
|
|
|
移动支付(App)、手机网站支付(Wap)、电脑网站支付(Web)、条码支付(Barcode)、扫码支付(Scan)
|
|
|
|
##### 支持的辅助接口:
|
|
|
|
查询、退款、撤销、对账单下载
|
|
|
|
### 4.QQ钱包:
|
|
|
|
##### 支持的支付方式:
|
|
|
|
移动支付(App)、公众号支付(Public)、条码支付(Barcode)、扫码支付(Scan)
|
|
|
|
##### 支持的辅助接口:
|
|
|
|
查询、退款、退款查询、撤销、关闭、对账单下载
|
|
|
|
### 5.通联收银宝:
|
|
|
|
##### 支持的支付方式:
|
|
|
|
统一支付(Unified)、统一条码(Barcode)
|
|
|
|
##### 支持的辅助接口:
|
|
|
|
查询
|
|
|
|
# Package
|
|
---
|
|
|
|
Package | NuGet
|
|
-------- | :------------
|
|
PaySharp.Core | [](https://www.nuget.org/packages/PaySharp.Core)
|
|
PaySharp.Core.Mvc | [](https://www.nuget.org/packages/PaySharp.Core.Mvc)
|
|
PaySharp.Alipay | [](https://www.nuget.org/packages/PaySharp.Alipay)
|
|
PaySharp.Wechatpay | [](https://www.nuget.org/packages/PaySharp.Wechatpay)
|
|
PaySharp.Unionpay | [](https://www.nuget.org/packages/PaySharp.Unionpay)
|
|
PaySharp.Qpay | [](https://www.nuget.org/packages/PaySharp.Qpay)
|
|
PaySharp.Allinpay | [](https://www.nuget.org/packages/PaySharp.Allinpay)
|
|
|
|
# 开发环境
|
|
* Windows 10
|
|
* Visual Studio 2019(16.4)
|
|
* .NET Core SDK 3.1
|
|
|
|
# 如何使用
|
|
---
|
|
|
|
见[Demo](https://github.com/Varorbc/PaySharp/tree/master/sample/PaySharp.Demo)
|
|
|
|
# 交流讨论
|
|
---
|
|
|
|
[](http://shang.qq.com/wpa/qunwpa?idkey=5d2538328d53d0610188d9dc4a62a7b51e50fe56ad1b35ca9e96308507eb09a7)
|
|
|
|
# Wiki
|
|
---
|
|
|
|
支付宝支付文档:
|
|
|
|
https://openhome.alipay.com/developmentDocument.htm
|
|
|
|
微信支付文档:
|
|
|
|
https://pay.weixin.qq.com/wiki/doc/api/index.html
|
|
|
|
中国银联文档:
|
|
|
|
https://open.unionpay.com/tjweb/doc/index
|
|
|
|
QQ钱包支付文档:
|
|
|
|
https://qpay.qq.com/buss/doc.shtml
|
|
|
|
通联收银宝支付文档:
|
|
|
|
https://aipboss.allinpay.com/know/devhelp/index.php
|
|
|
|
# 支持/打赏
|
|
|
|
<p align="center">
|
|
<img src="https://github.com/Varorbc/PaySharp/raw/master/reward.jpg">
|
|
<p align="center">打赏扫这里,请留下尊姓大名</p>
|
|
</p>
|
|
|
|
# 致谢
|
|
---
|
|
|
|
[hiihellox10](https://github.com/hiihellox10)
|
|
|
|
[John0King](https://github.com/John0King)
|
|
|
|
[stulzq](https://github.com/stulzq)
|
|
|
|
[Essensoft-Roc](https://github.com/Essensoft-Roc)
|