承接 sandiloka/tunai 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-08