Download the PHP package slince/youzan-pay without Composer

On this page you can find all versions of the php package slince/youzan-pay. 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 youzan-pay

有赞支付解决方案

利用有赞云和有赞微小店实现个人收款解决方案

Build Status Latest Stable Version Scrutinizer

Installation

使用 Composer 安装

Basic Usage

方法返回 Slince\YouzanPay\QRCode 对象。

怎么设置推送网上有太多帖子这里不再赘述,假设你已经设置好了推送:

$request 对象可以是 Symfony\Component\HttpFoundation\RequestPsr\Http\Message\ServerRequestInterface, 这表示 symfony , laravel, Sliex, CakePHP ,Slim 等框架用户可以直接将 request对象传给该方法; $request 也可以为null或者数组; 所以如果你不使用任何框架也可以很方便的集成;

如果是合法的有赞推送消息,$data 是一个数组,结构如下(注:下面是个json结构)

关于推送相关的文档可以参考 这里

接收到推送数据以后,你可以得到响应的 交易的id,但并不是你的订单id;用交易 id获取对应的二维码的id:

$tradeSlince\YouzanPay\Trade 的实例;注意,为了聚焦业务,该对象只保留了原生数据的部分字段;

License

采用 MIT 开源许可证


All versions of youzan-pay with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0
guzzlehttp/guzzle Version ^6.0
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 slince/youzan-pay contains the following files

Loading the files please wait ....