Skip to content

Multicore

woutse edited this page Nov 18, 2024 · 1 revision

Multicore

In the event of a failure or outage, you can configure an alternate core to ensure Pay. remains accessible through a different route, enabling the continued processing of payments.

In your config call, change the core using the setCore() function like this:

use PayNL\Sdk\Config\Config;

$request = new orderCreateRequest();

$config = (new Config())->setCore(Config::TGU2);

$payOrder = $request->setConfig($config)->start();

Available Cores / Endpoints

The cores you can use are obtained from the locally stored payment configuration retrieved via ServiceGetConfigRequest. These stored cores/endpoints can then be utilized with the setCore() function mentioned above. Prepend the core with https://connect. when using it with setCore().

If core information is unavailable, you can use one of the following predefined constants:

Available constants Endpoint URL
Config::TGU1 https://connect.pay.nl
Config::TGU2 https://connect.payments.nl
Config::TGU3 https://connect.achterelkebetaling.nl