khipu/khipu-api-client
最新稳定版本:2.9.1
Composer 安装命令:
composer require khipu/khipu-api-client
包简介
README 文档
README
Add the dependency khipu/khipu-api-client to composer.json and run
composer install
Usage
Basic usage
<?php require __DIR__ . '/vendor/autoload.php'; $c = new Khipu\Configuration(); $c->setSecret("abc123"); $c->setReceiverId(1234); $c->setDebug(true); $cl = new Khipu\ApiClient($c); $exp = new DateTime(); $exp->setDate(2020, 11, 3); $kh = new Khipu\Client\PaymentsApi($cl); try { $opts = array( "expires_date" => $exp, "body" => "test body" ); $resp = $kh->paymentsPost("Test de api", "CLP", 1570, $opts); print_r($resp); $r2 = $kh->paymentsIdGet($resp->getPaymentId()); print_r($r2); } catch(Exception $e) { echo $e->getMessage(); } ?>
统计信息
- 总下载量: 136.13k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2015-11-05