Download the PHP package code-lives/baidu without Composer

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

GitHub forks GitHub forks GitHub forks

第三方 token openid 支付 回调 退款 订单查询 解密手机号 分账 模版消息
百度小程序 ✓ ✓ ✓ ✓ ✓ ✓ ✓ x ✓

安装

⚠️ 注意

金额单位分 100=1 元

返回结果 array 由开发者自行判断

预下单

百度小程序

Config

参数名字 类型 必须 说明
appkey string 是 百度小程序 appkey
payappKey string 是 百度小程序支付 appkey
appSecret string 是 百度小程序 aapSecret
dealId int 是 百度小程序支付凭证
isSkipAudit int 是 默认为 0; 0:不跳过开发者业务方审核;1:跳过开发者业务方审核。
rsaPriKeyStr string 是 私钥(只需要一行长串,不需要文件)
rsaPubKeyStr string 是 百度小程序支付的平台公钥(支付回调需要)
notifyUrl string 否 异步回调地址
refundNotifyUrl string 否 退款异步回调地址

Token

返回参数 类型 必须 说明
expires_in string 是 凭证有效时间,单位:秒
session_key string 是 session_key
access_token string 是 获取到的凭证

Openid

返回参数 类型 必须 说明
session_key string 是 session_key
openid string 是 用户 openid

解密手机号

订单查询

参数名字 类型 必须 说明
access_token string 是 根据上面的获取 token
tpOrderId string 是 平台订单号

退款

参数名字 类型 必须 说明
access_token string 是 根据上面的获取 token
bizRefundBatchId int 是 百度平台的订单号
isSkipAudit int 是 默认为 0; 0:不跳过开发者业务方审核;1:跳过开发者业务方审核。
orderId int 是 百度平台的订单号
refundReason string 是 退款描述
refundType int 是 退款类型 1:用户发起退款;2:开发者业务方客服退款;3:开发者服务异常退款。百度小程序支付的平台公钥
tpOrderId string 是 自己平台订单号
userId int 是 用户 uid(不是自己平台 uid)

模版消息

支付回调


All versions of baidu 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 code-lives/baidu contains the following files

Loading the files please wait ...