Download the PHP package transfereasy/pay without Composer

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

欢迎使用 Transfereasy SDK for PHP 。

Transfereasy SDK for PHP SDK可以自动帮您满足能力调用过程中所需的证书校验、加签、验签、发送HTTP请求等非功能性要求。

Transfereasy SDK主要目标是提升开发者在服务端集成Transfereasy的各类能力的效率。

环境要求

  1. Transfereasy SDK for PHP 需要配合PHP 7.4或其以上版本。

  2. 使用 Transfereasy SDK for PHP 之前 ,您需要先前往Transfereasy-商户系统完成开发者接入的一些准备工作,或联系开发支持人员配置等。

  3. 准备工作完成后,注意保存如下信息,后续将作为使用SDK的输入。

产品CODETE的公钥TE的商户号

安装依赖

通过Composer在线安装依赖(推荐)

composer require transfereasy/pay

本地手动集成依赖(适用于自己修改源码后的本地重新打包安装)

  1. 本机安装配置Composer工具。
  2. 在本README.md所在目录下,执行composer install,下载SDK依赖。
  3. 依赖文件会下载到vendor目录下。

使用

以下这段代码示例向您展示了使用Transfereasy SDK for PHP调用一个API的步骤:

  1. 设置config
  2. 发起API调用。
  3. 处理响应或异常。

回调通知

已支持的API列表

类别 接口方法名称 版本
收单 payment(下单) V1
收单 getSign(获取签名) V1
收单 search V1,V2
收单 notify V1
收单 refund V1

注:更多场景的API持续更新,或联系技术支持进行更新。

Transfereasy接口文档

API Doc


All versions of pay with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
guzzlehttp/psr7 Version ^2.6
guzzlehttp/guzzle Version ^7.8
ext-json Version *
ext-openssl Version *
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 transfereasy/pay contains the following files

Loading the files please wait ....