Download the PHP package sebastienheyd/laravel-systempay without Composer
On this page you can find all versions of the php package sebastienheyd/laravel-systempay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sebastienheyd/laravel-systempay
More information about sebastienheyd/laravel-systempay
Files in sebastienheyd/laravel-systempay
Package laravel-systempay
Short Description Systempay (Banque Populaire) form generator for Laravel
License MIT
Informations about the package laravel-systempay
Systempay form generator for Laravel
Features
- Fast and easy form generation for Systempay (by Banque Populaire)
- Support multiple site id for multiple stores within the same project
- Support sha1 and hmac-sha-256
- Blade extension for more flexibility
Installation
-
Install the package
- Publish the config file
Configuration
After publishing edit the default configuration file : config/systempay.php
You need to set YOUR_SITE_ID
and YOUR_KEY
with your own values. This two values are given by Systempay.
Hashing algorithms
By default, the package will use hmac-sha-256 to generate the signature. To use sha1 you need to set algo
to sha1
in the configuration :
Specific parameters
These parameters are set by default :
name | default value | note |
---|---|---|
currency | 978 | List of currency codes |
payment_config | SINGLE | SINGLE or MULTIPLE |
trans_date | [current datetime] | Generated automaticaly |
page_action | PAYMENT | |
action_mode | INTERACTIVE | |
version | V2 | |
signature | [generated] | Generated automaticaly |
Also see Systempay documentation
NB : you don't have to add the vads_
prefix to parameters, the prefix will be automaticaly added.
But you can also set the parameters with the vads_
prefix, it will be automaticaly removed.
There is also possible to set some specific parameters to a configuration by setting params
values.
Example :
In this case, default configuration will use the currency code 826.
Additional configuration
You can add as many configuration as you need by adding a new key to the configuration file.
For example :
To use another configuration, call the config
method, for example :
Usage
In your controller :
In your view
Or with the Blade extension :
NB : With the Blade extension, if your variable name passed to the view is not $systemPay
you need to
set it like this :
In this example it will use $paymentData
instead of $systemPay