pinvandaag/worldline-xenturion-api-php

A PHP wrapper for the Worldline XENTURION API on https://partnerwebservice.worldline-solutions.com/

Maintainers

Package info

github.com/Pin-Voordeel-Bv/worldline-xenturion-api-php

pkg:composer/pinvandaag/worldline-xenturion-api-php

Transparency log

Statistics

Installs: 3

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.0.2 2026-08-19 10:32 UTC

This package is not auto-updated.

Last update: 2026-08-20 08:47:19 UTC


README

A PHP wrapper for the Worldline XENTURION Partner Webservice.

Installation

composer require pinvandaag/worldline-xenturion-api-php

JSON dbSearch GET

<?php

use PinVandaag\WorldlineXenturionAPI\WorldlineXenturionAPIClient;

$client = (new WorldlineXenturionAPIClient())
    ->configure(
        customerCode: $_ENV['WORLDLINE_CUSTOMER_CODE'],
        inlogId: $_ENV['WORLDLINE_INLOG_ID'],
        password: $_ENV['WORLDLINE_PASSWORD'],
    );

$result = $client->dbSearchGet();

var_dump($result);

The request is sent as:

GET /dbSearch?CustomerCode=...&InlogID=...&Password=...
Accept: application/json

The JSON example from Worldline decodes to:

[
    'dbSearch_response' => null,
]

JSON dbContract GET

$result = $client->dbContractGet([
    'IM_TERMID' => '50206406',
]);

Credentials are added from configure(). The package maps JSON-style field names such as IM_TERMID to Worldline's documented GET query name IM_termId.

JSON dbContract POST

$result = $client->dbContract([
    [
        'IM_CUSTOMERCODE' => 12345,
        'IM_TERMID' => '50206406',
        'IM_BRANDID' => 1,
        'IM_ACQID' => '1234',
        'IM_ACQTID' => '5678',
        'IM_MERCHANTUSERID' => 'merchant',
        'IM_DUEDATE' => '20260820',
    ],
]);

ImportXMLReseller_Action is optional for both methods. Pass it as the second argument when needed:

$client->dbContract($contracts, 'insert');
$client->dbContractGet($filters, 'delete');