civitatis/redsys-consultas

此包最新版本(v0.0.4)没有可用的许可信息。

允许查询Redsys交易咨询服务

v0.0.4 2019-05-22 08:49 UTC

This package is auto-updated.

Last update: 2024-09-10 20:46:36 UTC


README

允许查询使用Sermepa/Redsys的西班牙语网关银行所完成的交易订单。

该服务用于位于/apl02/services/SerClsWSConsulta的webservice。

西班牙语文档位于根目录下的'Consultas SOAP HMAC SHA256 2.5'。

安装

使用composer

composer require metadrop/redsys-query-php

示例

获取单个交易

此服务允许通过ID获取Redsys交易。

示例(同样可在examples/get_transaction.php中找到

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

use RedsysConsultasPHP\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);

获取大量监控

此服务允许通过开始日期和结束日期获取Redsys大量监控。

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

use RedsysConsultasPHP\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);