Download the PHP package asiabill/asiabill_php_sdk without Composer

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

AsiaBill PHP SDK

一个集成了AsiaBill的payment和openApi接口的组件,通过传递指定请求类型和对应的参数即可完成接口请求。使用前请先阅读Asiabill接口文档

支付演示页面访问:asiabill_php_sdk/demo/checkout.php

PHP要求

使用PHP SDK

1、加载AsiabillIntegration.php文件

2、初始化对象

3、开启日志,可以通过参数设置目录,如果不开启则跳过这一步

4、发起payment请求

5、发起openapi请求

6、获取站内支付jssdk脚本

参数说明

type:请求类型:自定义字符串
data:请求参数:数组参数,包含path,body,query三个部分

示例代码

创建交易:

查询交易信息:

创建客户:

删除客户:

签名校验

获取webhook数据

payment类型

类型 说明 接口
customers 操作客户(包含创建、修改、删除) /customers
/customers/{customerId}
sessionToken 生成会话接口 /sessionToken
paymentMethods 创建支付方式 /payment_methods
paymentMethods_list 根据客户获取所有支付方式 /payment_methods/list/{customerId}
paymentMethods_update 更新paymentMethod信息 /payment_methods/update
paymentMethods_query 获取支付方式 /payment_methods/{customerPaymentMethodId}
paymentMethods_detach 解绑支付方式 /payment_methods/{customerPaymentMethodId}/detach
paymentMethods_attach 客户附加支付方式 /payment_methods/{customerPaymentMethodId}/{customerId}/attach
confirmCharge 确认扣款 /confirmCharge
checkoutPayment 获取支付页面地址 /checkout/payment

openApi类型

类型 说明 接口
Authorize 预授权 /AuthorizeInterface
chargebacks 拒付查询 /chargebacks
refund 退款申请 /refund
refund_query 退款查询 /refund/{batchNo}
logistics 上传物流信息 /logistics
transactions 交易流水列表 /transactions
orderInfo 交易详情 /orderInfo/{tradeNo}

添加自定义类型


All versions of asiabill_php_sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
ext-curl Version *
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 asiabill/asiabill_php_sdk contains the following files

Loading the files please wait ....