Download the PHP package huifurepo/dg-php-sdk without Composer

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

简介

为了提高客户接入的便捷性,本系统提供 SDK 方式介入,使用本 SDK 将极大的简化开发者的工作,开发者将无需考虑通信、签名、验签等,只需要关注业务参数的输入。

下载地址

SDK下载

版本记录

版本 日期 版本说明
v1.0.0 2021/05/06 初始版本
v1.0.1 2021/08/23 实现通用接口请求客户端演示demo,实现部分支付功能的封装
v1.1.0 2021/10/12 对接新版斗拱 API 接口
v1.1.1 2021/11/02 封装余额支付、取现、代发模块对象
v1.1.2 2021/12/08 1. 封装快捷代扣、延时交易、商户管理模块;
2. 优化 huifuid 方法参数,默认从配置文件中读取
v1.1.3 2021/12/13 1. 优化 huifuid 方法参数
2. 调整Demo 中 config.json 公私字段的命名
3. 优化接口通讯安全处理
v1.1.4 2021/12/21 1. 修复扫码接口地址问题
2. 修复扫码支付模块支付类型对象数据格式化问题
v1.1.5 2022/01/19 1. 封装微信、支付宝、云闪付商户管理模块对象;
2. 封装分账用户管理模块对象
v1.1.6 2022/04/21 1. 封装支付宝花呗分期模块对象;
2. 封装终端报备模块对象;
3. 封装银行卡分期模块对象;
4. 封装交易取现、出金交易查询模块对象;
5. 封装智能终端模块对象;
6. 封装交易确认模块对象;
7. 升级商户管理、快捷代扣、线上交易的部分接口为V2版本;
v1.1.7 2022/05/05 1. 实现机构列表查询功能封装;
2. 实现商户关系绑定功能封装;
3. 实现机构下属商户查询功能封装;
4. 升级商户图片上传接口为V2版本;
v1.1.8 2022/05/12 1. 实现支付托管H5、PC、支付宝小程序、微信小程序预下单功能封装;
2. 补充验签工具使用说明;
v1.1.9 2022/07/14 1. 网银支付页面版、手机网页支付、快捷支付页面版接口只加签不验签;
2. 商户图片上传接口免加解签;
3. 优化预下单功能封装;
v2.0.0 2022/09/16 1. 类名按资源路径生成;
2. demo中字段说明更详细;

版本要求

PHP 版本 5.6 及以上

SDK 包结构说明

BsPaySdk 目录下内容为待添加到项目中的文件;

BsPayDemo 目录下为示例项目,供接入时参考使用;

使用方法

1. 将 BsPaySdk 目录下文件内容整体复制到您的项目工程内

2. 在您的项目创建 SDK 初始化的入口文件,完成如下配置:

2.1 进行相关环境及调试参数的配置

2.2 完成 sdk 初始化

2.3 完成系统参数的导入

2.4 以上内容,建议参考 SDK Demo 中 loader.php 文件内的代码写法

3. SDK 调用方法(一):使用接口 request 实例调用,以商户业务开通接口为例

3.1 导入前一步实现的 SDK 初始化文件

3.2 根据接口文档说明,创建对应请求的参数数据体

3.3 调用接口

3.4 处理返回结果

3.5 以上内容,建议参考 SDK Demo 中 V2MerchantBusiOpenRequestDemo.php 文件内的代码写法

4. SDK 调用方法(二):使用集中传参方式调用,以商户业务开通接口为例

除基于接口 request 实例调用外,另提供一种集中传参方式,拓展适应不同需求;

4.1 导入前一步实现的 SDK 初始化文件

4.2 根据接口文档说明,创建对应请求的参数数据体

4.3 调用接口

4.4 处理返回结果

5 验签工具(BsPayTools.php)


All versions of dg-php-sdk with dependencies

PHP Build Version
Package Version
No informations.
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 huifurepo/dg-php-sdk contains the following files

Loading the files please wait ....