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.
Table of contents
Download asiabill/asiabill_php_sdk
More information about asiabill/asiabill_php_sdk
Files in asiabill/asiabill_php_sdk
Download asiabill/asiabill_php_sdk
More information about asiabill/asiabill_php_sdk
Files in asiabill/asiabill_php_sdk
Vendor asiabill
Package asiabill_php_sdk
Short Description You can quickly access the PHP SDK of asiabill payment
License AGPL-3.0-or-later
Package asiabill_php_sdk
Short Description You can quickly access the PHP SDK of asiabill payment
License AGPL-3.0-or-later
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} |
添加自定义类型
- $request_type 请求类型,自定义字符,与request第一个参数一致,已经存在的类型不能添加
- $request_path 接口路径,参考asiabill接口文档
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 *
ext-curl Version *
ext-json Version *
ext-openssl Version *
The package asiabill/asiabill_php_sdk contains the following files
Loading the files please wait ....