Download the PHP package douyasi/baofoo without Composer

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

Baofoo

可能是最好的第三方宝付 SDK !

Latest Stable Version Latest Unstable Version License Total Downloads

使用说明

宝付认证支付

依据宝付认证支付 API 商户接入接口文档》(V4.0.4.0),本 Sdk 支持以下认证支付交易子类:

以上 8 个接口都支持传入以下可选项:

宝付代付

依据《宝付代付 API 接口文档》(V4.1.11),本 FoPaySdk 支持以下代付交易场景:

composer 包引入

composer.json 文件中添加上 "douyasi/baofoo": "~1.0" 项,然后执行 composer update 命令。

或者在 bash 下跳到项目根目录执行 composer require 'douyasi/baofoo:~1.0' 命令安装。

宝付认证支付使用示例

代码引入与初始化

直接绑卡(01)

返回值

正常成功结果 json 化示例:

异常结果 json 化示例:

其他接口返回值结构亦是如此,不再赘述返回值。

解除绑卡(02)

查询绑卡状态(03)

预支付(15)

确定支付(16)

其它接口

其它接口暂不列出示例,请查阅 Sdk.php 代码调用。

宝付代付使用示例

代码引入与初始化

代付交易接口(BF0040001)

返回值

正常成功结果 json 化示例:

异常结果 json 化示例:

具体 return_code 对应的异常请参阅《宝付代付 API 接口文档》(V4.1.11)。

代付交易状态查证接口(BF0040002)

上面测试代码返回值 json 化结果:

state 订单交易处理状态 M 0:转账中; 1:转账成功; -1:转账失败; 2:转账退款.

代付交易退款查证接口(BF0040003)

代付交易拆分接口(BF0040004)

上面测试代码返回值 json 化结果:

其它

其它未尽事宜,请开发者自行参阅《宝付代付 API 接口文档》(V4.1.11)。

参考资源

联系方式

在使用中,遇到问题可以发 issue ,或者通过以下方式联系作者我。


All versions of baofoo with dependencies

PHP Build Version
Package Version
Requires monolog/monolog Version ^1.23
php Version >=5.6.4
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 douyasi/baofoo contains the following files

Loading the files please wait ....