PHPackages                             luisurrutia/transbank-soap - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. luisurrutia/transbank-soap

AbandonedArchivedLibrary

luisurrutia/transbank-soap
==========================

Utilidades de validación y procesamiento SOAP para SDK de Transbank

0.0.1(7y ago)21.1k1MITPHP

Since Oct 30Pushed 7y agoCompare

[ Source](https://github.com/LuisUrrutia/TransbankSoap)[ Packagist](https://packagist.org/packages/luisurrutia/transbank-soap)[ RSS](/packages/luisurrutia-transbank-soap/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (2)Used By (1)

Transbank SOAP
==============

[](#transbank-soap)

> Set of utilities to validate and process the XMLs of the SOAP services of Transbank

**This library IS NOT an implementation of Webpay Webservices.**

The current implementation of the utilities used in the Transbank Webservice SOAP libraries (mid 2018 and before) are modified classes of Rob Richards' libraries (wsse-php and xmlseclibs), possibly because these classes have private and unprotected methods and properties, therefore they cannot be inherited in order to use the properties.

This *library* uses a different approach after analyzing such implementation, isolating specific functionalities that must be applied to XML to build a valid request.

Installation
------------

[](#installation)

```
composer require luisurrutia/transbank-soap
```

Getting started
---------------

[](#getting-started)

First you must import this *library* by making use of the `autoloader`that provides composer or by making individual `require` or `require_once` *(although perhaps we should kill you if you do the last)*

### Build the request

[](#build-the-request)

Assuming you have a class that inherits from SoapClient, you must implement the `__doRequest`method and within it, you must make use of `LuisUrrutia\TransbankSoap\Process` to build the XML of the request.

> PRIVATE\_KEY should be a path of your private key or your private key itself
>
> CERTIFICATE should be a path of your certificate or your certificate itself

```
