PHPackages                             marlon-be/marlon-ogone - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. marlon-be/marlon-ogone

ActiveLibrary[Payment Processing](/categories/payments)

marlon-be/marlon-ogone
======================

3.1.5(5y ago)72593.7k↓11.7%52[8 issues](https://github.com/marlon-be/marlon-ogone/issues)[4 PRs](https://github.com/marlon-be/marlon-ogone/pulls)1MITPHPPHP &gt;=5.3CI failing

Since Apr 14Pushed 8mo ago27 watchersCompare

[ Source](https://github.com/marlon-be/marlon-ogone)[ Packagist](https://packagist.org/packages/marlon-be/marlon-ogone)[ RSS](/packages/marlon-be-marlon-ogone/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (35)Used By (1)

Ogone PHP library
=================

[](#ogone-php-library)

This library allows you to easily implement an [Ogone](http://ogone.com) integration into your project. It provides the necessary components to complete a correct payment flow with the [Ogone](http://ogone.com) platform.

[![Scrutinizer Quality Score](https://camo.githubusercontent.com/024c8ffd4048da268ed8b06de977a9fc7728e0c236644826ed28b5ad8b63dfba/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d61726c6f6e2d62652f6d61726c6f6e2d6f676f6e652f6261646765732f7175616c6974792d73636f72652e706e673f733d63656162653365373637636164383037623538396663363331363965366133333064323066396661)](https://scrutinizer-ci.com/g/marlon-be/marlon-ogone/)[![Build Status](https://camo.githubusercontent.com/cb98ac5e4a1a6b0bf0553f6167f8449fd43c0cafe1c2679fd99c1614dbccdbe0/68747470733a2f2f7472617669732d63692e6f72672f6d61726c6f6e2d62652f6d61726c6f6e2d6f676f6e652e706e67)](https://travis-ci.org/marlon-be/marlon-ogone)

Requirements:

- PHP 5.3
- network connection between your webserver and the Ogone platform

As always, this is work in progress. Please feel free to fork this project and get those pull requests coming!

Overview
--------

[](#overview)

The library complies to the [PSR-0 standard](http://groups.google.com/group/php-standards/web/psr-0-final-proposal), so it can be autoloaded using PSR-0 classloaders like the one in Symfony2. See autoload.php for an example.

- Create an EcommercePaymentRequest or CreateAliasRequest, containing all the info needed by Ogone.
- Generate a form
- Submit it to Ogone (client side)
- Receive a PaymentResponse back from Ogone (as a HTTP Request)

Both EcommercePaymentRequest, CreateAliasRequest and PaymentResponse are authenticated by comparing the SHA sign, which is a hash of the parameters and a secret passphrase. You can create the hash using a ShaComposer.

The library also allows:

- Fetching order information via Ogone API using DirectLinkQueryRequest
- Executing maintenance request via Ogone API using DirectLinkMaintenanceRequest

SHA Composers
=============

[](#sha-composers)

Ogone provides 2 methods to generate a SHA sign:

- "Main parameters only"

    [![Main parameters only](http://github.com/marlon-be/marlon-ogone/raw/master/documentation/images/ogone_security_legacy.png)](http://github.com/marlon-be/marlon-ogone/raw/master/documentation/images/ogone_security_legacy.png)

    Implementation using this library is trivial:

```
