vismutx/easycredit-api-php

Easycredit api for PHP generated by swagger

1.04 2022-04-23 17:35 UTC

This package is auto-updated.

Last update: 2024-04-23 22:27:59 UTC


README

Version: V2 With the help of the REST API, webshop operators or business partners can integrate the ratenkauf by easyCredit into a webshop. Thus you have the possibility to integrate the ratenkauf by easyCredit into your webshop according to your own needs. To initialize and complete a Ratenkauf using the REST API,the webshop system must authenticate itself against the REST API installment purchase. To do this, the webshop ID and the API password must be entered in the respective attributes in the header of the request. You will receive your personal webshop identification after conclusion of the contract with us. Would you like to use installment purchase by easyCredit? Register directly under: Registration and we will get in touch with you. On our Ratenkauf Partner Site Ratenkauf Partner Site we provide many shop plugins and additional integration guides. API Root URL: https://ratenkauf.easycredit.de/ratenkauf-ws/rest/v2

This PHP package is automatically generated by the Swagger Codegen project:

  • API version: V2
  • Build package: io.swagger.codegen.languages.PhpClientCodegen

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, run

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

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/SwaggerClient-php/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?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;
}

?>

Documentation for API Endpoints

All URIs are relative to https://ratenkauf.easycredit.de/ratenkauf-ws/rest/v2

Class Method HTTP request Description
ModellrechnungApi executeBeispielrechnungDurchfuehren GET /modellrechnung/guenstigsterRatenplan Calculates the installment plan with the lowest rate for a product or shopping cart.
ModellrechnungApi executeModellrechnungDurchfuehren GET /modellrechnung/durchfuehren Performing an example calculation for a product or shopping cart
TexteApi executeZustimmung GET /texte/zustimmung/{webshopkennung} Loads the texts for the declaration of consent
TexteApi representativesBeispiel GET /texte/repraesentativesBeispiel/{webshopkennung} Loads a general representative example of an installment purchase
TransactionApi executeAllgemeineVorgangsdatenLaden GET /vorgang/{vorgangskennung} Loads the general transaction data
TransactionApi executeEntscheidungDurchfuehren POST /vorgang/{vorgangskennung}/entscheiden Executes the decision
TransactionApi executeMtanValidieren POST /vorgang/{vorgangskennung}/mTAN Verify mTAN
TransactionApi executeVorgangInitialisieren POST /vorgang Initializes the transaction
TransactionApi executeVorgangSpeichern POST /vorgang/{vorgangskennung} Saves the transaction
VorgangApi executeBestellungBestaetigen POST /vorgang/{vorgangskennung}/bestaetigen Confirms the transaction
VorgangApi executeEntscheidungLaden GET /vorgang/{vorgangskennung}/entscheidung Loads the decision result
VorgangApi executeFinanzierungLaden GET /vorgang/{vorgangskennung}/finanzierung Loads financing data
VorgangApi executePersonLaden GET /vorgang/{vorgangskennung}/person Loads personal customer data
VorgangApi executeZustimmungSepa GET /vorgang/{vorgangskennung}/zustimmung/sepa Retrieving the approval text for the SEPA scheme
VorgangApi mTanVersenden POST /vorgang/{vorgangskennung}/mTANversenden Triggers the sending of an mTAN again.
WebshopApi abfrageRestbetragAnkaufobergrenze GET /webshop/{webshopkennung}/restbetragankaufobergrenze Loads the remaining amount of the purchase limit for the webshop

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author