sandiloka/tunai
最新稳定版本:v0.0.3
Composer 安装命令:
composer require sandiloka/tunai
包简介
Tunai client SDK
README 文档
README
This is a Tunai.id lib for PHP.
Install
This lib can be installed using Composer. Add the following definition to your composer.json:
{
"require": {
"sandiloka/tunai": "*"
}
}
Interact with Invoice object
use Sandiloka\Tunai\Invoice; $invoice = new Invoice('key', `secret`); $invoiceData = array ( 'refId' => '1234567', 'expired' => time() . '000', // to match JS new Date().valueOf() 'customer' => array ( "name": "Joni Iskandar", "phone": "08122039966", "address": "Jalan Senandung Raya No. 1" ), 'items' => array( array( "id": "123456", "description": "Sepatu Warna Merah Jambu", "qty": 1, "price": 100000 ) ) ); $res = $invoice.create($invoiceData); $statusCode = $res.getStatusCode(); $json = $res.getBody();
License
MIT
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-10-08