Coder Social home page Coder Social logo

resdevs / payment Goto Github PK

View Code? Open in Web Editor NEW

This project forked from helei112g/payment

0.0 2.0 0.0 370 KB

php集成支付宝(即时到帐、手机网站、移动支付、订单查询、退款、转款)、微信支付(APP支付、公众号支付、扫码支付接口)等主流支付渠道,方便扩展。提供完善的文档指导。让支付开发变得简单。

Home Page: https://helei112g.github.io/

PHP 100.00%

payment's Introduction

版本介绍

此版本在1.0的基础上进行了重构,两个版本互不兼容。

功能介绍

支付宝SDK接口文档

微信支付SDK接口文档

使用说明

文档地址

为了便于大家开发,本次2.0以博客的形式,完成完整的文档。文档中还包含了部分代码构建的介绍。

安装

  • 方式一

通过composer,这是推荐的方式,可以使用composer.json 声明依赖,或者运行下面的命令。SDK 包已经放到这里 riverslei/payment

    composer require "riverslei/payment:~2.0"

放入composer.json文件中

    "require": {
        "riverslei/payment": "~2.0"
    }
  • 方式二 直接下载安装,SDK 没有依赖其他第三方库,但需要参照 composer的autoloader,增加一个自己的autoloader程序。代码中以提供一个默认autolaod.php 可直接使用.

运行环境

Payment SDK PHP版本
2.x cURL extension, mbstring, 5.5 ~ 7.0
1.x cURL extension, 5.3 ~ 5.6

具体使用规则可参考 examples/* 中的示例.本SDK可直接运行.进行测试

说明

在开发1.0版本的时候,主要是考虑到自己项目的使用。因此很多朋友说他们有多个账户,配置文件该怎么写?

有的配置文件以前在redis中,或者db中,又该如何完成?

本次2.0版本解决了以上问题,并且提供了更加简单的调用接口。

1.0发出后,虽然配备了示例代码,还是有很多朋友无法灵活运用于代码中。

本次开发过程中将配置完善的文档,会介绍使用,以及此SDK开发思路,便于大家自己根据情况修改或者增加新功能。

若需要技术支持,可添加微信: helei543345 (此服务不免费哦!)

赞助说明

非常感谢以下企业、朋友的赞赏,感谢你们的认可与支持。

名字 金额 说明 时间
张松 15.00 不错,已用到项目中 2016-6-17
一米市集 1000.00 希望提供技术长期合作 2016-7-20
尊称韦爵爷 1.00 赶紧出个yii的扩展 2016-7-22
小兵~招UI前端 50.00 继续努力,喝杯水吧:-) 2016-8-14
哈罗Joe 1.00 加油~~ 2016-8-23

payment's People

Contributors

helei112g avatar janhuang avatar

Watchers

James Cloos avatar Sunny avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.