Blogger Information
Blog 14
fans 0
comment 0
visits 12049
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Thinkphp5.0支付宝支付扩展库类库大全
alber1986的博客
Original
786 people have browsed it

Thinkphp5.0支付宝支付扩展库类库大全,包括手机网站支付、电脑网站支付、支付查询、退款、退款查询、对账单等。

Thinkphp5.0支付宝调用方法:

电脑网站支付 Pagepay.php 
 
调用 \alipay\Pagepay::pay($params) 即可 
 
手机网站支付 Wappay.php 
 
调用 \alipay\Wappay::pay($params) 即可 
 
交易查询接口 Query.php 
 
调用 \alipay\Query::exec($query_no) 即可 
 
交易退款接口 Refund.php 
 
调用 \alipay\Refund::exec($params) 即可 
 
退款统一订单查询 RefundQuery.php 
 
调用 \alipay\RefundQuery::exec($params) 即可 
 
交易关闭接口 Close.php 
 
调用 \alipay\Close::exec($query_no) 即可 
 
查询账单下载地址接口 Datadownload.php 
 
调用 \alipay\Datadownload::exec($bill_type, $bill_date) 即可 
 
验签 Notify.php 
 
调用 \alipay\Notify::checkSign($params) 即可

配置application\extra\alipay.php

<?php 
/** 
 * 支付宝支付 
 */ 
 
return [ 
        //应用ID,您的APPID。 
        'app_id' => "", 
 
        //商户私钥 
        'merchant_private_key' => "", 
 
        //异步通知地址 
        'notify_url' => "", 
 
        //同步跳转 
        'return_url' => "", 
 
        //编码格式 
        'charset' => "UTF-8", 
 
        //签名方式 
        'sign_type'=>"RSA2", 
 
        //支付宝网关 
        'gatewayUrl' => "https://openapi.alipay.com/gateway.do", 
 
        //支付宝公钥,查看地址:https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。 
        'alipay_public_key' => "", 
];

支付宝类库下载:https://www.sucaihuo.com/php/2645.html

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post