Download the PHP package yuxiaobo/ant-cloudpay-sdk without Composer

On this page you can find all versions of the php package yuxiaobo/ant-cloudpay-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ant-cloudpay-sdk

ant-cloudpay-sdk

开发开源原因:

因对接支付宝 IoT 需要,但是蚂蚁云支付官方暂时没有 php 的 sdk,于是决定开发了这个包。开源出来是为了帮助更多的 phper 小伙伴省略去包装 api 的过程,快速出活。

文档

示例

条码支付

退款

Notify 通知回调处理

注意内容

  1. 支付回调是 POST 请求, 携带如下 JSON 数据的 body
  2. 商户收到回调通知,进行对应业务处理后,须要返回处理结果。处理成功返回“success”字符串,处理失败可返回失败原因。
  3. 若商户返回失败(即不是“success”),云支付会按照一定的时间间隔,进行重试通知,重试结束后不再通知。重试时间规则,单位秒:15,30,60,300,600,1800,15,30,3600,15,30,7200,14400,28800,57600

示例数据 (退款)

示例数据 (条码支付)

如何验签

感谢

❤️ 感谢所有对项目进行捐助支持的朋友们~

下面是捐助名单,按时间排序

捐助时间 捐助内容 捐助者
2024/01/17 100.00 大师兄🌵

问题反馈

如果您在使用过程中遇到了问题,请先反馈 issue

着急使用的话请联系 绿泡泡:Base1024

或是 fork 一份自己改,项目遵循 MIT 开源协议

请务必反馈 issue


All versions of ant-cloudpay-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2.5 || ^8.0
guzzlehttp/guzzle Version ^7
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package yuxiaobo/ant-cloudpay-sdk contains the following files

Loading the files please wait ....