Skip to content

Install

woutse edited this page Nov 18, 2024 · 4 revisions

Installation: CLI

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

composer require paynl/php-sdk

Installation: Zipfile (coming)

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

Download the zipfile that is included in the release itself. 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 .

Edit the file OrderCreateMinimal.php and update:
vendor path.
username (AT-code).
password (API token)
serviceId (Sales location code).
Then run OrderCreateMinimal.php in your browser

Clone this wiki locally