Coder Social home page Coder Social logo

ibaozi / alipay Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dedemao/alipay

0.0 2.0 0.0 100 KB

一个PHP文件搞定支付宝支付系列,包括电脑网站支付,手机网站支付,扫码支付,JSAPI支付、单笔转账到支付宝账户、交易结算(分账、分润)、网页授权获取用户信息等

PHP 85.51% HTML 14.49%

alipay's Introduction

alipay

一个PHP文件搞定支付宝支付系列

网上的很多PHP支付宝支付接入教程都颇为复杂,且需要配置和引入较多的文件,本人通过整理后给出一个单文件版的(代码只有200行左右),每个文件独立运行,不依赖和引入其他文件。希望可以给各位想接入支付宝的带来些许帮助和借鉴意义。

一个PHP文件搞定微信支付系列请移步:https://github.com/dedemao/weixinPay

在线演示

https://www.dedemao.com/alipay/demo.html

环境依赖

PHP5.0以上,且需要开启CURL服务、SSL服务。

文件对应说明

pc.php 电脑网站支付

wap.php   手机网站支付

qrcode.php   当面付(扫码支付)

barcode.php   当面付(条码支付)

jsapi.php js原生支付(支付宝扫码打开网页,在网页中调起支付宝原生支付)

transfers.php 单笔转账到支付宝账户

settle.php 交易结算(分账、分润)

authorize.php 网页授权获取用户信息

close.php 交易关闭接口

refund.php 退款

return.php   同步回调通知

notify.php   异步回调通知

注意事项

1.需要用到支付宝哪一种支付方式,就只下载对应的单个文件即可。

2.文件开头的配置信息必须完善

若对您有帮助,可以赞助并支持下作者哦,谢谢!

联系邮箱:[email protected]

alipay's People

Contributors

dedemao avatar

Watchers

 avatar  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.