Download the PHP package deruwe/atos-sips without Composer
On this page you can find all versions of the php package deruwe/atos-sips. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package atos-sips
Sips PHP library
This library allows you to easily implement a [Sips] integration into your project. It provides the necessary components to complete a correct payment flow with the [Sips] platform.
Requirements:
- PHP 5.3
- network connection between your webserver and the Sips platform
The SIPS platform can be reached through the following URL's:
- SIMU: https://payment-webinit.simu.sips-atos.com/paymentInit
- TEST: https://payment-webinit.test.sips-atos.com/paymentInit
- PRODUCTION: https://payment-webinit.sips-atos.com/paymentInit
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.
The library supports the use of Composer.
- Create a PaymentRequest, containing all the info needed by Sips.
- Submit it to Sips (client side)
- Receive a PaymentResponse back from Sips (as a HTTP Request)
Both PaymentRequest 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.
SHA Composer
Sips method to generate a SHA sign:
-
"Each parameter followed by the passphrase" This method requires you to use the following encryption method: SHA-256.
Implementation using this library is trivial:
PaymentRequest
PaymentResponse
The PaymentResponse
is typically used in a separate endpoint that is available to SIPS. This URL will be used by the SIPS platform to inform the Merchant whether the payment was successful.
Checking whether the payment is successful relies on checking if the RESPONSECODE
parameter is 00
or 60
.
Running the tests
The test suite requires PHPUnit to run. Simply run phpunit
from the root of the project.
phpunit