citypay / paylink-sdk-php
CityPay Paylink的PHP SDK,用于使用CityPay Paylink API处理和授权交易
1.0.0
2019-03-14 09:56 UTC
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ~2.12
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ~2.6
This package is auto-updated.
Last update: 2024-09-22 19:12:34 UTC
README
CityPay Paylink系统的支付创建API。
此PHP包由Swagger Codegen项目自动生成
- API版本:3.1
- 构建包:io.swagger.codegen.languages.PhpClientCodegen 了解更多信息,请访问https://citypay.com
需求
PHP 5.5及以后版本
安装与使用
Composer
要使用Composer安装绑定,请将以下内容添加到composer.json
{
"repositories": [
{
"type": "git",
"url": "https://github.com//.git"
}
],
"require": {
"/": "*@dev"
}
}
然后运行composer install
手动安装
下载文件并包含autoload.php
require_once('/path/to/SwaggerClient-php/vendor/autoload.php');
测试
要运行单元测试
composer install
./vendor/bin/phpunit
入门
请遵循安装过程,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); $apiInstance = new Swagger\Client\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); $body = new \Swagger\Client\Model\TokenRequest(); // \Swagger\Client\Model\TokenRequest | try { $apiInstance->createPost($body); } catch (Exception $e) { echo 'Exception when calling DefaultApi->createPost: ', $e->getMessage(), PHP_EOL; } ?>
API端点文档
所有URI相对于https://secure.citypay.com/paylink3
模型文档
授权文档
所有端点都不需要授权。