Download the PHP package haveyb/alipay without Composer
On this page you can find all versions of the php package haveyb/alipay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download haveyb/alipay
More information about haveyb/alipay
Files in haveyb/alipay
Download haveyb/alipay
More information about haveyb/alipay
Files in haveyb/alipay
Please rate this library. Is it a good library?
Informations about the package alipay
一、介绍
没有接触过支付宝支付的同学,包括一部分已经接触过支付宝支付,但只是使用sdk的同学,都不太了解支付宝支付时,到底内部都进行了什么处理,基于此,写此composer 包。
本包内部集成了 MD5、RSA、RSA2三种方式,目前支付宝官方推荐使用最新版本的RSA2。而且目前支付宝的沙箱也仅支持RSA2方式。
本包配置好参数之后,可以直接进行测试,这里再次推荐使用最新的RSA2方式。配置参数的方式也很简单。
二、使用:
1、配置config.php 中的参数
2、实例化时,指定方式,MD5、RSA、RSA2,并将订单基本信息传过去。
3、根据实际需求修改 notify.php 中日志记录。
4、根据实际需求修改 Base.php 中的 checkOrderFee 和 changeOrderStatus 方法。
5、在调用的地方添加如下代码,即可运行
三、使用效果
Powered by https://www.haveyb.com/article/192
All versions of alipay with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1
The package haveyb/alipay contains the following files
Loading the files please wait ....