Download the PHP package gabrielextso/paybox-bundle without Composer
On this page you can find all versions of the php package gabrielextso/paybox-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gabrielextso/paybox-bundle
More information about gabrielextso/paybox-bundle
Files in gabrielextso/paybox-bundle
Package paybox-bundle
Short Description LexikPayboxBundle eases the implementation of the Paybox payment system.
License MIT
Homepage https://github.com/lexik/LexikPayboxBundle
Informations about the package paybox-bundle
LexikPayboxBundle
Important!
This bundle is partially maintained. No new features will be added but some PR will be merged for compatibility or security.
LexikPayboxBundle makes the use of Paybox payment system easier by doing all the boring things for you.
LexikPayboxBundle silently does :
- hmac hash calculation of parameters during request.
- server testing before request to be sure it is up.
- signature verification with openssl on ipn response.
- triggers an event on response.
You only need to provide parameters of your transaction, customize the response page and wait for the event triggered on ipn response.
Requirements
- PECL hash >= 1.1
- openssl enabled
Installation
Installation with composer :
Add this bundle to your app/AppKernel.php :
Configuration
Your personnal account informations must be set in your config.yml
Additional configuration:
The routing collection must be set in your routing.yml
Usage of Paybox System
The bundle includes a sample controller SampleController.php
with two actions.
The getUrl() method silently does a server check and throws an exception if the destination server does not respond.
The payment confirmation in your business logic must be done when the instant payment notification (IPN) occurs. The plugin contains a controller with an action that manages this IPN and triggers an event. The event contains all data transmetted during the request and a boolean that tells if signature verification was successful.
The bundle contains a listener example that simply create a file on each ipn call.
To create your own listener, you just have to make it wait for the "paybox.ipn_response" event. For example the listener of the bundle:
Resources
All transactions parameters are available in the official documentation.
All versions of paybox-bundle with dependencies
psr/log Version ~1.0
lib-curl Version >=7.10.0
lib-openssl Version >=0.9.6
symfony/framework-bundle Version ~2.7|~3.0
symfony/form Version ~2.7|~3.0
symfony/options-resolver Version ~2.7|~3.0
kriswallsmith/buzz Version ~0.15