Download the PHP package frenchykiller/laravel-systempay without Composer
On this page you can find all versions of the php package frenchykiller/laravel-systempay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download frenchykiller/laravel-systempay
More information about frenchykiller/laravel-systempay
Files in frenchykiller/laravel-systempay
Package laravel-systempay
Short Description Laravel component to generate a payment form for Banque Populaire Systempay
License MIT
Informations about the package laravel-systempay
Systempay form component for Laravel 7.x+
Overview
This package provides a simple component to create a payment form for Banque Populaire's Systempay api.
Installation
In order to install the Laravel Boilerplate Systempay component, run:
Usage
To include the Systempay form in a page, simply add the component in your blade file:
Attributes
The following attributes are accepted:
Name | Type | Default | Description |
---|---|---|---|
request | array | null | Request containing the information to be sent to the systempay api to obtain the formToken. This request must contain the required amount field. Full documentation on aaccepted fields can be found here |
hasButton | boolean | true | Whether or not to generate the payment button and associated events. If this is set to false, you will have to send the transaction request manually with all appropriate parameters |
successPost | string | null | Post URL to redirect to if the payment is successful |
successGet | string | null | Get URL to redirect to if the payment is successful |
failPost | string | null | Post URL to redirect to if the payment is rejected |
failGet | string | null | Get URL to redirect to if the payment is rejected |
site | string | default | The name of the configuration to be used. Can be any name that is specified in the config file |
Configuration
The component comes with a default config file making the component functional out of the box, however, if you wish to personalize the configuration, you can publish the config file with one of the following commands:
By default, the configuration file located at config/systempay.php
contains the following information:
To change the default configuration, simply set the SYSTEMPAY_SITE_ID
, SYSTEMPAY_PASSWORD
and SYSTEMPAY_KEY
variables in the config file or your .env file. These values are given by Systempay.
If you wish to add extra sites to the same app, simply add new entries to the config file as follows:
Testing
By default the package is set up to run in a test environment. To switch to prod you must set the SYSTEMPAY_SITE_ID
, SYSTEMPAY_PASSWORD
and SYSTEMPAY_KEY
variables in your .env file or publish and change the config file as seen in the configuration section
Tests / Coding standards
This package is delivered with a Makefile
used to launch checks for the respect of coding standards and the unit tests
Just call make
to see the list of commands.
Contributing
Please see contributing.md for details and a todolist.
Credits
License
This package is free software distributed under the terms of the MIT license.