2017 © Pedro Peláez
 

library payment

支付宝支付、微信支付、招商一网通支付php SDK。方便快速接入,最完整的开源支付 php sdk

image

cyd622/payment

支付宝支付、微信支付、招商一网通支付php SDK。方便快速接入,最完整的开源支付 php sdk

  • Monday, August 21, 2017
  • by tonywang
  • Repository
  • 0 Watchers
  • 0 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 471 Forks
  • 0 Open issues
  • 30 Versions
  • 0 % Grown

The README.md

Software license Latest development ![Monthly installs][ico-downloads-monthly], (*1)


所有的支付接入请看文档操作。如果文档遇到问题可通过后面提供的方式联系到我。, (*2)


当前支持 微信支付宝招商一网通 三个渠道: - 微信支付:刷卡支付、公众号支付、扫码支付、APP支付、H5支付、小程序支付全部支持;, (*3)

  • 支付宝支付:手机网站支付、APP支付、扫码支付、条码支付、电脑网站支付(即时到账)全部支持;, (*4)

  • 招商一网通:app支付、手机网站支付(实际上是同一种支付,但是可用于该两种场景)。, (*5)

支持所有第三方的支付订单查询、退款操作、退款订单状态查询。同时支持支付宝与微信的转账操作。, (*6)

安装Payment

Payment 需要 PHP >= 5.6,并且需要安装以下扩展:, (*7)

- cURL extension

- mbstring

- BC Math
  • 安装方式一

通过composer,这是推荐的方式,可以使用composer.json 声明依赖,或者直接运行下面的命令。, (*8)

    composer require "cyd622/payment:~3.1"

放入composer.json文件中, (*9)

    "require": {
        "cyd622/payment": "~3.1"
    }

然后运行, (*10)

composer update
  • 安装方式二

直接下载放入自己的项目中,通过 require 的方式引用代码。极度不推荐, (*11)

Change Log

  • 加入招商一网通支付,加入详细的demo(from v3.1.0)
  • 支付宝密钥支持字符串、文件两种方式配置,微信支持HMAC-SHA256加密(from v3.0.1)
  • 支持支付宝rsa2签名 加入支付宝当面付-条码支付(条码与声波两种模式) 微信加入刷卡支付、小程序支付、H5支付 提供客户端静态调用类 不再兼容支付宝老版本接口(from v3.0.0)
  • 支持支付宝新版本支付接口(from v2.7.0)
  • 配置文件控制权限由使用者控制(from v2.0.0)

Payment 能够做什么

Paymeng 主要帮助 php 开发者在服务端快速接入主流的支付平台(支付宝支付、微信支付等)。节省时间少走弯路。, (*12)

Payment 针对不同支付平台,提供了统一的调用方式,开发者无需再一个平台一个平台的去阅读文档、调试。所有的支付平台后台服务统一用一套代码,在支付对接模块的代码维护量大大减少,可以把更多的时间和精力花在自身产品的核心业务上, (*13)

为什么要用Payment SDK

所有的支付官方都提供了demo,方便开发者学习使用。但是其中每一个支付 demo 都不尽相同,并且不少 官方 demo 还有不少错误,让开发者使用的时候莫名其妙。, (*14)

针对不同的支付,官方demo写法各异,很多还使用了老旧的 php 语法。, (*15)

Payment SDK 针对不同服务商的支付功能,都提供统一的调用方式,大大降低学习与使用成本。, (*16)

与其他聚合支付服务的对比

这里最主要的对比对象是ping++。当然我这个个人开发者肯定没法与之相比。首先ping++服务更多,接入的支付种类更多。开放出来的接口也更多。, (*17)

但是本sdk的优势也非常明显。 - 使用项目自己部署,只需向第三方支付服务提供者付费(阿里、腾讯)。 - 项目开源,遵循 MIT 许可证,大家可自由更改。 - 根据自己需求,可以自己动手定义个性化。 - 通过composer安装管理,方便升级。 - 就算我以后不维护升级了,也保证你代码可用,如果用第三方聚合的支付,与第三方就有了强关联。, (*18)

联系&打赏

如果真心觉得项目帮助到你,为你节省了成本,欢迎鼓励一下。, (*19)

如果有什么问题,可通过以下方式联系我。提供有偿技术服务。, (*20)

也希望更多朋友可用提供代码支持。欢迎交流与大赏。, (*21)

感谢朋友们的支持:支持名单, (*22)

License

The code for Payment is distributed under the terms of the MIT license (see LICENSE)., (*23)

The Versions

21/08 2017

dev-master

9999999-dev https://helei112g.github.io/categories/payment-3/

支付宝支付、微信支付、招商一网通支付php SDK。方便快速接入,最完整的开源支付 php sdk

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-bcmath *
  • ext-mbstring *

 

The Development Requires

by cyd622

alipay weixin 微信支付 支付宝支付 集成支付接口sdk 招商一网通 一网通

21/08 2017

v3.1.3

3.1.3.0 https://helei112g.github.io/categories/payment-3/

支付宝支付、微信支付、招商一网通支付php SDK。方便快速接入,最完整的开源支付 php sdk

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-bcmath *
  • ext-mbstring *

 

The Development Requires

by cyd622

alipay weixin 微信支付 支付宝支付 集成支付接口sdk 招商一网通 一网通

22/05 2017

v3.1.2

3.1.2.0 https://helei112g.github.io/categories/payment-3/

支付宝支付、微信支付、招商一网通支付php SDK。方便快速接入,最完整的开源支付 php sdk

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-bcmath *
  • ext-mbstring *

 

The Development Requires

by cyd622

alipay weixin 微信支付 支付宝支付 集成支付接口sdk 招商一网通 一网通

22/05 2017

v3.1.1

3.1.1.0 https://helei112g.github.io/categories/payment-3/

支付宝支付、微信支付、招商一网通支付php SDK。方便快速接入,最完整的开源支付 php sdk

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-bcmath *
  • ext-mbstring *

 

The Development Requires

by cyd622

alipay weixin 微信支付 支付宝支付 集成支付接口sdk 招商一网通 一网通

30/04 2017

v3.1.0

3.1.0.0 https://helei112g.github.io/categories/payment-3/

支付宝支付、微信支付、招商一网通支付php SDK。方便快速接入,最完整的开源支付 php sdk

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-bcmath *
  • ext-mbstring *

 

The Development Requires

alipay weixin 微信支付 支付宝支付 集成支付接口sdk 招商一网通 一网通

22/04 2017

v3.0.9

3.0.9.0 https://helei112g.github.io/

支付宝支付、微信支付集成SDK。整合集成快速接入,支持支付宝最新接口

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-bcmath *
  • ext-mbstring *

 

The Development Requires

alipay weixin 微信支付 支付宝支付 集成支付接口sdk

19/04 2017

v3.0.8

3.0.8.0 https://helei112g.github.io/

支付宝支付、微信支付集成SDK。整合集成快速接入,支持支付宝最新接口

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-bcmath *
  • ext-mbstring *

 

The Development Requires

alipay weixin 微信支付 支付宝支付 集成支付接口sdk

28/03 2017

v3.0.7

3.0.7.0 https://helei112g.github.io/

支付宝支付、微信支付集成SDK。整合集成快速接入,支持支付宝最新接口

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-bcmath *
  • ext-mbstring *

 

The Development Requires

alipay weixin 微信支付 支付宝支付 集成支付接口sdk

18/03 2017

v3.0.6

3.0.6.0 https://helei112g.github.io/

支付宝支付、微信支付集成SDK。整合集成快速接入,支持支付宝最新接口

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-bcmath *
  • ext-mbstring *

 

The Development Requires

alipay weixin 微信支付 支付宝支付 集成支付接口sdk

14/03 2017

v3.0.5

3.0.5.0 https://helei112g.github.io/

支付宝支付、微信支付集成SDK。整合集成快速接入,支持支付宝最新接口

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-bcmath *
  • ext-mbstring *

 

The Development Requires

alipay weixin 微信支付 支付宝支付 集成支付接口sdk

13/03 2017

v3.0.4

3.0.4.0 https://helei112g.github.io/

支付宝支付、微信支付集成SDK。整合集成快速接入,支持支付宝最新接口

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-bcmath *
  • ext-mbstring *

 

The Development Requires

alipay weixin 微信支付 支付宝支付 集成支付接口sdk

11/03 2017

v3.0.3

3.0.3.0 https://helei112g.github.io/

支付宝支付、微信支付集成SDK。整合集成快速接入,支持支付宝最新接口

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-bcmath *
  • ext-mbstring *

 

The Development Requires

alipay weixin 微信支付 支付宝支付 集成支付接口sdk

09/03 2017

v3.0.2

3.0.2.0 https://helei112g.github.io/

支付宝支付、微信支付集成SDK。整合集成快速接入,支持支付宝最新接口

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-bcmath *
  • ext-mbstring *

 

The Development Requires

alipay weixin 微信支付 支付宝支付 集成支付接口sdk

08/03 2017

v3.0.1

3.0.1.0 https://helei112g.github.io/

支付宝支付、微信支付集成SDK。整合集成快速接入,支持支付宝最新接口

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-bcmath *
  • ext-mbstring *

 

The Development Requires

alipay weixin 微信支付 支付宝支付 集成支付接口sdk

07/03 2017

v3.0.0

3.0.0.0 https://helei112g.github.io/

支付宝支付、微信支付集成SDK。整合集成快速接入,支持支付宝最新接口

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-bcmath *
  • ext-mbstring *

 

The Development Requires

alipay weixin 微信支付 支付宝支付 集成支付接口sdk

21/02 2017

v2.7.3

2.7.3.0 https://helei112g.github.io/

集成支付宝、微信支付等流行的支付接口,后续会持续跟进中

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-bcmath *
  • ext-mbstring *

 

alipay weixin 微信支付 支付宝支付 集成支付接口sdk

19/02 2017

v2.7.2

2.7.2.0 https://helei112g.github.io/

集成支付宝、微信支付等流行的支付接口,后续会持续跟进中

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-bcmath *
  • ext-mbstring *

 

alipay weixin 微信支付 支付宝支付 集成支付接口sdk

03/01 2017

v2.7.1

2.7.1.0 https://helei112g.github.io/

集成支付宝、微信支付等流行的支付接口,后续会持续跟进中

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-bcmath *
  • ext-mbstring *

 

alipay weixin 微信支付 支付宝支付 集成支付接口sdk

31/12 2016

v2.7.0

2.7.0.0 https://helei112g.github.io/

集成支付宝、微信支付等流行的支付接口,后续会持续跟进中

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-bcmath *
  • mbstring *

 

alipay weixin 微信支付 支付宝支付 集成支付接口sdk

28/10 2016

v2.6.1

2.6.1.0 https://helei112g.github.io/

集成支付宝、微信支付等流行的支付接口,后续会持续跟进中

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

alipay weixin 微信支付 支付宝支付 集成支付接口sdk

23/10 2016

v2.6

2.6.0.0 https://helei112g.github.io/

集成支付宝、微信支付等流行的支付接口,后续会持续跟进中

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

alipay weixin 微信支付 支付宝支付 集成支付接口sdk

21/10 2016

v2.5

2.5.0.0 https://helei112g.github.io/

集成支付宝、微信支付等流行的支付接口,后续会持续跟进中

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

alipay weixin 微信支付 支付宝支付 集成支付接口sdk

26/08 2016

v2.4

2.4.0.0 https://helei112g.github.io/

集成支付宝、微信支付等流行的支付接口,后续会持续跟进中

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

alipay weixin 微信支付 支付宝支付 集成支付接口sdk

18/08 2016

v2.3

2.3.0.0 https://helei112g.github.io/

集成支付宝、微信支付等流行的支付接口,后续会持续跟进中

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

alipay weixin 微信支付 支付宝支付 集成支付接口sdk

13/08 2016

v2.2

2.2.0.0 https://helei112g.github.io/

集成支付宝、微信支付等流行的支付接口,后续会持续跟进中

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

alipay weixin 微信支付 支付宝支付 集成支付接口sdk

04/08 2016

v2.1

2.1.0.0 https://helei112g.github.io/

集成支付宝、微信支付等流行的支付接口,后续会持续跟进中

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

alipay weixin 微信支付 支付宝支付 集成支付接口sdk

27/07 2016

v2.0

2.0.0.0 https://helei112g.github.io/

集成支付宝、微信支付等流行的支付接口,后续会持续跟进中

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

alipay weixin 微信支付 支付宝支付 集成支付接口sdk

23/07 2016

v1.2

1.2.0.0 http://blog.csdn.net/hel12he/

集成支付宝、微信支付等流行的支付接口,后续会持续跟进中

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

alipay weixin 微信支付 支付宝支付 集成支付接口sdk

17/06 2016

v1.1

1.1.0.0 http://blog.csdn.net/hel12he/

集成支付宝、微信支付等流行的支付接口,后续会持续跟进中

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

alipay weixin 微信支付 支付宝支付 集成支付接口sdk

16/06 2016

v1.0

1.0.0.0 http://blog.csdn.net/hel12he/

集成支付宝、微信支付等流行的支付接口,后续会持续跟进中

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

alipay weixin 微信支付 支付宝支付 集成支付接口sdk