vismutx/easycredit-api-php

由swagger生成的PHP Easycredit API

1.04 2022-04-23 17:35 UTC

This package is auto-updated.

Last update: 2024-09-23 23:18:58 UTC


README

版本:V2 通过REST API,网店运营商或商业合作伙伴可以将easyCredit的分期付款集成到网店中。因此,您可以根据自己的需求将easyCredit的分期付款集成到您的网店中。要使用REST API初始化和完成分期付款,网店系统必须对REST API分期付款进行身份验证。为此,必须在请求头的相应属性中输入网店ID和API密码。在签署与我们签订的合同后,您将收到您的个人网店识别码。您想使用easyCredit的分期付款吗?请直接在以下链接注册:注册,我们将与您联系。在我们的分期付款合作伙伴网站上 分期付款合作伙伴网站,我们提供许多商店插件和额外的集成指南。API根URL:https://ratenkauf.easycredit.de/ratenkauf-ws/rest/v2

此PHP包由Swagger Codegen项目自动生成

  • API版本:V2
  • 构建包:io.swagger.codegen.languages.PhpClientCodegen

需求

PHP 5.5及更高版本

安装 & 使用

Composer

要安装绑定,请运行以下命令:

composer require vismutx/klarna-order-management-api-php

手动安装

下载文件并包含 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 Vismutx\EasycreditApiPhp\Api\ModellrechnungApi(
    // 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()
);
$webshop_id = "webshop_id_example"; // string | Webshop-ID
$finanzierungsbetrag = 8.14; // float | Financing amount

try {
    $result = $apiInstance->executeBeispielrechnungDurchfuehren($webshop_id, $finanzierungsbetrag);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ModellrechnungApi->executeBeispielrechnungDurchfuehren: ', $e->getMessage(), PHP_EOL;
}

?>

API端点文档

所有URI均相对于 https://ratenkauf.easycredit.de/ratenkauf-ws/rest/v2

模型文档

授权文档

所有端点都不需要授权。

作者