Laravel wrapper for Pay.nl PHP SDK
composer require deniztezcan/laravel-paynl
Add a ServiceProvider to your providers array in config/app.php
:
'providers' => [
//other things here
DenizTezcan\LaravelPayNL\PayNLServiceProvider::class,
];
Add the facade to the facades array:
'aliases' => [
//other things here
'PayNL' => DenizTezcan\LaravelPayNL\Facades\PayNL::class,
];
Finally, publish the configuration files:
php artisan vendor:publish --provider="DenizTezcan\LaravelPayNL\PayNLServiceProvider"
Please set the PAYNL_TOKENCODE
, PAYNL_APITOKEN
, PAYNL_SERVICEID
and PAYNL_TESTMODE
key in your .env file.