1. Go to this page and download the library: Download civitatis/redsys-consultas library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
civitatis / redsys-consultas example snippets
edsysConsultasPHP\Client\Client;
$url = 'https://sis-t.redsys.es:25443/apl02/services/SerClsWSConsulta';
$client = new Client($url, 'Introduce your merchant password');
$order = 'Introduce your order';
$terminal = 'Introduce your terminal';
$merchant_code = 'Introduce your merchant code';
$response = $client->getTransaction($order, $terminal, $merchant_code);
print_r($response);
edsysConsultasPHP\Client\Client;
$url = 'https://sis-t.redsys.es:25443/apl02/services/SerClsWSConsulta';
$client = new Client($url, 'Introduce your merchant password');
$fecha_inicio = 'Y-m-d-H.i.00.000000';
$fecha_fin = 'Y-m-d-H.i.59.000000';
$terminal = 'Introduce your terminal';
$merchant_code = 'Introduce your merchant code';
$response = $client->getMonitorMasiva($fecha_inicio, $fecha_fin, $terminal, $merchant_code);
print_r($response);
bash
composer
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.