This action will force synchronization from 大愚/payment, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
官方公告: https://pay.weixin.qq.com/index.php/public/cms/content_detail?lang=zh&id=56602
Payment 需要 PHP >= 5.6以上的版本,并且同时需要PHP安装以下扩展
- ext-curl
- ext-mbstring
- ext-bcmath
- package-Guzzle
guzzle 是一个开源的php http请求lib,项目地址
Payment是一个集成了 支付宝支付、微信支付、招商支付的PHP SDK。服务端开发者将它集成到自己的项目中,可以方便的通过相同的操作方式进行各项支付操作。不再需要开发者去单独了解支付宝、微信、招商的接口文档。以发起支付举例,开发者只需要通过:
try {
$str = Charge::run(支付类型, 配置文件, 支付数据);
} catch (PayException $e) {
echo $e->errorMessage();
exit;
}
就可以得到支付结果返回数据。关心的核心只需要正确了解如何组装支付数据,以及如何正确处理返回后的数据即可。
Payment支持所有的PHP项目,只要求PHP版本大于等于5.6即可。同时支持composer与手动引入两种安装方式。
当前sdk仅接入了支付宝支付、微信支付、招商支付(支付、退款)。中国现在电子支付的公司巨多,无法一一接入,欢迎各位发扬自己动手、丰衣足食的光荣传统,提交PR给我,代码贡献指南 看这里
通过composer,这是推荐的方式,可以使用composer.json 声明依赖,或者直接运行下面的命令。
composer require "riverslei/payment:*"
放入composer.json文件中
"require": {
"riverslei/payment": "*"
}
然后运行
composer update
感谢朋友们的支持:支持名单
The code for Payment is distributed under the terms of the MIT license (see LICENSE).
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。