PHPackages                             ingenico/ogone-sdk-php - 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. ingenico/ogone-sdk-php

ActiveLibrary

ingenico/ogone-sdk-php
======================

Ingenico SDK for PHP

3.1.0(4y ago)1152.5k↓41.1%3[2 PRs](https://github.com/limegrow/ogone-sdk-php/pulls)1OSLPHPPHP &gt;=7.0CI failing

Since Jul 31Pushed 2y ago2 watchersCompare

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

READMEChangelog (5)Dependencies (3)Versions (7)Used By (1)

Ogone PHP SDK
=============

[](#ogone-php-sdk)

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.

Requirements:

- PHP &gt;=7.0
- network connection between your webserver and the Ogone platform

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:

```
