Skip to content

Install

Wouter Jonker edited this page Jan 28, 2026 · 8 revisions

Installation: CLI

To install the Pay. PHP SDK on the command line use the following command:

composer require paynl/php-sdk

Installation: Zipfile

Another way to install the SDK is by using the zipfile.

Download the zipfile that is included in the release itself (PayPHPSDKv.....zip) . Then unzip the contents of the file and upload it to your server. In your project, require the file vendor/autoload.php.


After installation

After installation, try a sample to see if all works well:

 cp vendor/paynl/php-sdk/samples/OrderCreateMinimal.php .

Then edit the file OrderCreateMinimal.php and update:

  • the vendor path;
  • username (AT-code);
  • password (API token);
  • serviceId (Sales location code).

Open OrderCreateMinimal.php in your browser. A payment URL will be displayed, which you can use to start the transaction.

Clone this wiki locally