Download the PHP package ravols/laravel-everifin without Composer
On this page you can find all versions of the php package ravols/laravel-everifin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ravols/laravel-everifin
More information about ravols/laravel-everifin
Files in ravols/laravel-everifin
Package laravel-everifin
Short Description This is my package laravel-everifin
License MIT
Homepage https://github.com/ravols/laravel-everifin
Informations about the package laravel-everifin
Laravel Everifin Payment Gateway
This package serves as a Laravel bridge, enabling the seamless creation and management of payments through the Everifin payment gateway. It is built upon the original PHP SDK from Everifin, ensuring robust functionality and compatibility. Check the PHP SDK here.
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
You can use this config values when setting up your Config instance.
Usage
To begin, you need to create an instance of your Config class. This instance is designed as a singleton, meaning it's only instantiated once during the lifecycle of your application. The reason it's not globally defined in a provided service is to cater for situations where your project supports multiple e-commerce sites and requires dynamic configuration value changes.
In most cases, adhere to the following approach:
Once the payment is paid for or cancelled on the payment gateway, customer is redirect back to the redirectUrl that you provided in the createPayment method. Now, you need to retrieve the payment status and handle your order as you wish.
You can retireve the payment ID as it's always send back to the redirect url as a get parameter ID or store it in a database during payment creation from the $responseData above.
List of all statuses can be found on the documentation page.
List of error codes and their descriptions can be found on the documentation page.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-everifin with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0
ravols/everifin-sdk-php Version ^0.2