Download the PHP package metadrop/redsys-consultas-php without Composer

On this page you can find all versions of the php package metadrop/redsys-consultas-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package redsys-consultas-php

Redsys query PHP

Allow query order transactions done into spanish gateway banks that uses Sermepa/Redsys.

This is used into webservice located in /apl02/services/SerClsWSConsulta.

The spanish documentation is located in 'TPV-Virtual Consulta SOAP.pdf', in root folder.

Right now, the services covered by this library are:

Installation

Use composer:

Examples

Get single transaction (TransactionMasiva)

This service allows get the redsys transactions by id.

Example (also available in examples/get_transaction.php:

Get multiple transactions by date (Via Monitor Masiva)

This service allows get the redsys transactions between two dates.

Example:

Get multiple transactions by date and type (Via Transaction Masiva)

This service allows get the redsys transactions between two dates and a certain type of transaction. As far as I can tell, 0 for incoming transactions, 3 for refunds.

Example:



<?php
require './vendor/autoload.php';

use RedsysConsultasPHP\Client\Client;

$url = 'https://sis-t.redsys.es:25443/apl02/services/SerClsWSConsulta';
$logger = new \Monolog\Logger;('log');
$logger->pushHandler(new \Monolog\Handler\RotatingFileHandler('dir_to_log/name_of_log.log'));
$config = [
  'logger' => $logger,
  'logger_format' => '{request}',
];
$client = new Client($url, 'Introduce your merchant password', $config);

$terminal = 'Introduce your terminal';
$merchant_code = 'Introduce your merchant code';
// Note: Period shouldn't be bigger than 15 days and start date can't be older than 1 year.
$start_date = "2021-05-01-00.00.00.000000"; // Y-m-d-H.i.s.000000
$end_date = "2021-05-14-23.59.59.000000"; // Y-m-d-H.i.s.000000

$transaction_type = "0"; // Single integer

$response = $client->getTransactionMasiva($terminal, $merchant_code, $start_date, $end_date, $transaction_type);

print_r($response);

All versions of redsys-consultas-php with dependencies

PHP Build Version
Package Version
Requires ext-simplexml Version *
guzzlehttp/guzzle Version ^6.3 || ^7
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package metadrop/redsys-consultas-php contains the following files

Loading the files please wait ....