pinvandaag / worldline-xenturion-api-php
A PHP wrapper for the Worldline XENTURION API on https://partnerwebservice.worldline-solutions.com/
Package info
github.com/Pin-Voordeel-Bv/worldline-xenturion-api-php
pkg:composer/pinvandaag/worldline-xenturion-api-php
v0.0.2
2026-08-19 10:32 UTC
Requires
- php: ^8.2
- guzzlehttp/guzzle: ^7.7
- phpdocumentor/reflection-docblock: ^5.3
- psr/log: ^3.0
- symfony/property-access: ^6.3|^7
- symfony/serializer: ^6.3|^7
Requires (Dev)
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^11
- squizlabs/php_codesniffer: ^3.7
- vimeo/psalm: ^6
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');