Download the PHP package ingenico/ogone-sdk-php without Composer
On this page you can find all versions of the php package ingenico/ogone-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package ogone-sdk-php
Ogone PHP SDK
This library allows you to easily implement an Ogone integration into your project. It provides the necessary components to complete a correct payment flow with the Ogone platform.
Requirements:
- PHP >=7.0
- network connection between your webserver and the Ogone platform
Overview
The library complies to the PSR-0 standard, 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
Ogone provides 2 methods to generate a SHA sign:
-
"Main parameters only"
Implementation using this library is trivial:
-
"Each parameter followed by the passphrase"
Implementation using this library is trivial:
This library currently supports both the legacy method "Main parameters only" and the new method "Each parameter followed by the passphrase". Either can be used with SHA-1 (default), SHA-256 or SHA-512 encryption.
EcommercePaymentRequest and FormGenerator
CreateAliasRequest
DirectLinkPaymentRequest
DirectLinkQueryRequest
DirectLinkMaintenanceRequest
EcommercePaymentResponse
CreateAliasResponse
DirectLinkPaymentResponse
As the DirectLink payment gets an instant feedback from the server (and no async response) we don't use the SHA validation.
Parameter filters
ParameterFilters are used to filter the provided parameters. Both ShaIn- and ShaOutParameterFilters are provided and are based on the parameter lists defined in the Ogone documentation. Parameter filtering is optional, but we recommend using them to enforce expected parameters.
All versions of ogone-sdk-php with dependencies
ext-libxml Version *
ext-simplexml Version *
ext-intl Version *
ext-mbstring Version *
monolog/monolog Version *