Download the PHP package kayintveen/laravel-paynl without Composer
On this page you can find all versions of the php package kayintveen/laravel-paynl. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kayintveen/laravel-paynl
More information about kayintveen/laravel-paynl
Files in kayintveen/laravel-paynl
Package laravel-paynl
Short Description A clean and professional Laravel wrapper for Pay.nl payment gateway integration
License MIT
Informations about the package laravel-paynl
Laravel Pay.nl Wrapper
A clean, modern, and professional Laravel wrapper for the Pay.nl payment gateway. This package provides a fluent interface for integrating Pay.nl payments into your Laravel 11 and Laravel 12 applications.
Features
- โ Laravel 11 & 12 Compatible - Full support for the latest Laravel versions
- ๐ Easy Installation - Auto-discovery for seamless integration
- ๐ฏ Fluent API - Clean and intuitive method chaining
- ๐ Type-Safe - Full PHP 8.1+ type hints and return types
- ๐งช Test Mode Support - Easy testing without real transactions
- ๐ฆ Comprehensive Coverage - Transactions, refunds, payment methods, and QR codes
- ๐จ Laravel Pint Ready - Code formatted to Laravel standards
- ๐ก๏ธ Exception Handling - Clear error messages for debugging
Requirements
- PHP 8.1 or higher
- Laravel 11.0 or 12.0
- Pay.nl account with API credentials
Installation
Install the package via Composer:
The service provider and facade are automatically registered via Laravel's package auto-discovery.
Configuration
Publish the configuration file (optional):
Add your Pay.nl credentials to your .env file:
You can find your API credentials in your Pay.nl dashboard under Settings > API tokens.
Usage
Starting a Transaction
Getting Transaction Info
Checking Transaction Status
Refunding a Transaction
Getting Available Payment Methods
Managing Transactions
Getting QR Code
Using Dependency Injection
Instead of the facade, you can also inject the PayNLClient directly:
Available Methods
Transaction Methods
| Method | Description |
|---|---|
startTransaction(array $options) |
Start a new payment transaction |
getTransaction(string $transactionId) |
Get transaction details |
getTransactionStatus(string $transactionId) |
Get transaction status |
approveTransaction(string $transactionId) |
Approve a transaction |
declineTransaction(string $transactionId) |
Decline a transaction |
voidTransaction(string $transactionId) |
Void a transaction |
captureTransaction(string $transactionId, ?array $options) |
Capture a transaction |
Refund Methods
| Method | Description |
|---|---|
refundTransaction(string $transactionId, ?int $amount, ?string $description, ?array $options) |
Refund a transaction |
getRefund(string $refundId) |
Get refund details |
Payment Methods
| Method | Description |
|---|---|
getPaymentMethods() |
Get available payment methods |
QR Code Methods
| Method | Description |
|---|---|
getQrCode(string $transactionId, array $options) |
Get QR code for transaction |
Utility Methods
| Method | Description |
|---|---|
getServiceId() |
Get configured service ID |
isTestMode() |
Check if test mode is enabled |
Testing
Enable test mode in your .env:
In test mode, no real transactions will be processed.
Exception Handling
The package throws PayNLException when operations fail:
Code Quality
This package follows Laravel coding standards and is formatted with Laravel Pint:
Security
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
Credits
- Kay in 't Veen
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
About Pay.nl
Pay.nl is a payment service provider that offers various payment methods including iDEAL, credit cards, PayPal, and many more. This package provides a Laravel-friendly wrapper around their PHP SDK.
Support
Changelog
Please see CHANGELOG for recent changes.