Download the PHP package snowcap/ogone-bundle without Composer
On this page you can find all versions of the php package snowcap/ogone-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download snowcap/ogone-bundle
More information about snowcap/ogone-bundle
Files in snowcap/ogone-bundle
Package ogone-bundle
Short Description Ogone wrapper for Symfony2
License MIT
Homepage https://github.com/snowcap/SnowcapOgoneBundle
Informations about the package ogone-bundle
Introduction
This bundle introduces the Ogone payment process gateway into a Symfony project It uses the marlon-ogone Bundle, and adds a different integration approach
More info about Ogone can be found here: http://www.ogone.com
WARNING: THIS BUNDLE IS IN BETA STAGE, USE AT YOUR OWN RISKS !
Prerequisites
- Symfony 2.1>=
- You must have a valid Ogone account, configured with SHA-IN and SHA-OUT security activated
Installation
Download the bundle:
Add it to your application's kernel:
Configuration
Put the following configuration options in your config file:
Usage
Getting the Ogone form to use in your view
A service 'snowcap_ogone.manager' allows you to get the ogone form rendering, whereby you can also define the acceptUrl, and any other option you want to send to Ogone An example could be:
Pay attention, this is not a Symfony form, just a simple rendered form provided by the Ogone library.
Getting Ogone result
First you need to add a route in your routing.yml
To catch Ogone's result, you have to create a service and tag it as an event subscriber (or an event listener): For example:
That service has to implement the EventSubscriberInterface, like the following:
You now have two methods inside your bundle to operate all the business logic you need, enjoy !
All versions of ogone-bundle with dependencies
symfony/framework-bundle Version >=2.2
symfony/monolog-bundle Version >=2.2
marlon-be/marlon-ogone Version ~3.0