PHP支付宝免签接口:Alipay

WBOY
Release: 2016-06-23 13:25:46
Original
1950 people have browsed it

Alipay

PHP支付宝免签接口

用法

打开command.php修改如下内容。

$alipay = new Alipay(array(  'cookie' => '', //支付宝Cookie  'notify' => '', //通知地址  'token' => 'please_input_your_token'    //安全密钥));
Copy after login

关于Cookie需要登录支付宝后点击账单然后按下F12,然后再console上面输入document.cookie复制cookie填写cookie。然后执行

php command.php
Copy after login
对接说明

1、本插件会用curl发送POST请求到你设定的通知地址。

POST字段说明

time 转账时间title  转账的说明trade 支付宝交易号(流水号)name 打款人amount 转账金额sig 密钥(大写的MD5加密后的字符串)
Copy after login

返回字符

如果通知成功请返回success字符。

备注

1、我没有做掉线处理还有重复通知处理,需要的自行改一下lib\alipay.class.php

项目主页:http://www.open-open.com/lib/view/home/1443348653729

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template