Download the PHP package alcalyn/payplug-bundle without Composer
On this page you can find all versions of the php package alcalyn/payplug-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alcalyn/payplug-bundle
More information about alcalyn/payplug-bundle
Files in alcalyn/payplug-bundle
Package payplug-bundle
Short Description Payplug integration to symfony2
License MIT
Homepage https://github.com/alcalyn/payplug-bundle
Informations about the package payplug-bundle
AlcalynPayplugBundle
Payplug integration to symfony2.
Installation
Step 1: Download using composer
Update your composer.
Step 2: Register the Bundle
Step 3: Import Payplug IPN route
To create payments and process IPNs, the bundle need to have its routes enabled.
Add this to app/config/routing.yml:
Step 4: Configure the bundle and your account settings
Add these lines to your config.yml:
And these lines into parameters.yml, and optionally into parameters.yml.dist:
Then run this command to load your Payplug account settings:
(Your Payplug email and password will be prompted)
Warning:
Be sure to never commit your account settings by commiting your parameters.yml
See Payplug documentation for more informations about account configuration.
Note:
This command uses curl to load your account parameters from https://www.payplug.fr/portal/ecommerce/autoconfig
If the command fails, go to https://www.payplug.fr/portal/ecommerce/autoconfig and copy/paste your parameters manually.
Your parameters.yml should looks like this: parameters.yml.example
You can also configure your TEST mode.
Basic usage:
Generating payment url:
Treat IPNs
AlcalynPayplugBundle dispatches PayplugIPNEvent when an IPN is received.
This event contains an instance of IPN that you can access by calling PayplugIPNEvent::getIPN().
So listen it like that:
-
Create the listener class:
- Register your listener:
Advanced usage:
- Use TEST mode
- Extend IPN class
- Listen to malformed IPN
- Generate payment Url from command
- Simulate an IPN from command
License
This bundle is under the MIT license. See the complete license: