Skip to content

Configuration

woutse edited this page Nov 18, 2024 · 1 revision

Configuration

When the installation is completed, you have two configuration options:

  • Set the global config: Do this in /config/config.global.php.
  • Or set your config when connecting to an endpoint. Like this:
use PayNL\Sdk\Config\Config;

$config = new Config();
$config->setUsername($yourUsername); # Your tokencode
$config->setPassword($yourPassword); # Your API token
$myRequest->setConfig($config);

Notice: It is also possible to authenticate with SL-code as username and secret as password, except for the endpoints terminalGet, terminalBrowse, transactionStatus and transactionRefund.