netzkollektiv / easycredit-api-v3-php
商家门户交易-V3 API 交易-V3 API for ratenkauf 应用程序 交易分期计算器-V3 API for ratenkauf 应用程序
2.0.0
2024-09-23 14:13 UTC
Requires
- php: >= 7.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/psr7: ^1.1.19 || >=2.4.5
- psr/http-client: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.12
- phpunit/phpunit: ^8.0 || ^9.0
README
easyCredit API v3 库是以下 easyCredit API 的官方 PHP 库
- 支付 API v3 (https://ratenkauf.easycredit.de/api/payment/v3/openapi)
- 计算器 API v3 (https://ratenkauf.easycredit.de/api/ratenrechner/v3/openapi)
- 商家 API v3 (https://partner.easycredit-ratenkauf.de/api/merchant/v3/openapi)
安装与使用
要求
- PHP >= 7.0
Composer
要通过 Composer 安装 API 库,请将以下内容添加到 composer.json
{ "repositories": [ { "type": "vcs", "url": "https://github.com/netzkollektiv/easycredit-api-v3-php.git" } ], "require": { "netzkollektiv/easycredit-api-v3-php": "*@dev" } }
然后运行 composer install
手动安装
下载文件并包含 autoload.php
<?php require_once('/path/to/easycredit-api-v3-php/vendor/autoload.php');
入门指南
请按照 安装过程 进行操作,然后运行以下内容
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure HTTP basic authorization: basicAuth $config = Teambank\EasyCreditApiV3\Configuration::getDefaultConfiguration() ->setHost('https://ratenkauf.easycredit.de') ->setUsername('1.de.1234.1') // use your "Webshop-ID" ->setPassword('YOUR_API_KEY'); // use your "API-Kennwort" $apiInstance = new Teambank\EasyCreditApiV3\Api\DocumentApi( // 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(), $config ); $billingDateFrom = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | set by default to the last month if not specified $billingDateTo = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | set by default to billingDateFrom + one month if not specified $documentType = array('documentType_example'); // string[] | set by default to all options if not specified $fileType = array('fileType_example'); // string[] | set by default to all options if not specified try { $result = $apiInstance->apiMerchantV3DocumentsGet($billingDateFrom, $billingDateTo, $documentType, $fileType); print_r($result); } catch (Exception $e) { echo 'Exception when calling DocumentApi->apiMerchantV3DocumentsGet: ', $e->getMessage(), PHP_EOL; }
API 端点
所有 URI 都相对于 https://partner.easycredit-ratenkauf.de
模型
- 地址
- 文章
- 文章编号项
- 认证错误
- 授权请求
- 授权状态响应
- 银行
- 银行账户检查
- 预订
- 计算器分期计划
- 捕获请求
- 同意
- 约束违规
- 约束违规违规
- 联系
- 客户
- 客户关系
- 设备识别令牌
- 就业
- 分期计划
- 分期计划请求
- 分期计划响应
- 集成检查请求
- 集成检查响应
- 利息
- 发票地址
- MTan
- 消息
- 订单详情
- 分页信息
- 支付约束违规
- 支付约束违规违规
- 支付计划
- 计划
- 重定向链接
- 重定向链接SI
- 退款
- 退款预订
- 退款请求
- 服务器错误
- 送货地址
- 购物车信息项
- 商店系统
- 交易
- 交易客户
- 交易信息
- 交易初始化响应
- 交易列表信息
- 交易订单详情
- 交易响应
- 交易摘要
- 交易更新
- 传输 MTan
- 网店响应
授权
基本认证
- 类型: HTTP 基本认证
测试
要运行测试,请使用
composer install vendor/bin/phpunit
作者
关于此包
此 PHP 包是由 OpenAPI Generator 项目自动生成的
- API 版本:
V3.147.0
- 构建包:
org.openapitools.codegen.languages.PhpClientCodegen