PHPackages                             endelwar/gestpayws - 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. [Payment Processing](/categories/payments)
4. /
5. endelwar/gestpayws

ActiveLibrary[Payment Processing](/categories/payments)

endelwar/gestpayws
==================

PHP implementation of GestPay (Banca Sella) Web Services

v1.4.0(7y ago)714.2k—0%9[1 issues](https://github.com/endelwar/GestPayWS/issues)[3 PRs](https://github.com/endelwar/GestPayWS/pulls)1MITPHPPHP &gt;=5.6.7

Since Mar 31Pushed 5y ago2 watchersCompare

[ Source](https://github.com/endelwar/GestPayWS)[ Packagist](https://packagist.org/packages/endelwar/gestpayws)[ RSS](/packages/endelwar-gestpayws/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (12)Used By (1)

GestPayWS
=========

[](#gestpayws)

[![License](https://camo.githubusercontent.com/1f5a4e7ca9a308009283de831fec52dce59a422c2e6d4f1a0ea38d98bd6462e9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f656e64656c7761722f6765737470617977732e737667)](https://packagist.org/packages/endelwar/gestpayws)[![Latest Stable Version](https://camo.githubusercontent.com/cea3e99131f8e9c8481d11e02ae2b0dd000bef7213b00c057019b307b7e3e70a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656e64656c7761722f6765737470617977732e737667)](https://packagist.org/packages/endelwar/gestpayws)[![Build Status](https://camo.githubusercontent.com/ff57abbba07f714cd40363ac170d0c3fb1238fe4fb71cc826ec205b4f43e5a8a/68747470733a2f2f7472617669732d63692e6f72672f7065706576657264652f4765737450617957532e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pepeverde/GestPayWS)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/1861e2853c34b4d25a5abeb57fef3c915fec5c0b3ed7fb7f0c983a295d673237/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7065706576657264652f4765737450617957532f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/pepeverde/GestPayWS/?branch=master)[![Coverage Status](https://camo.githubusercontent.com/576637b849a8abcd1786cf08a954d256f54d0a6709297f048d670edfbdfecda0/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7065706576657264652f4765737450617957532f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/pepeverde/GestPayWS?branch=master)

PHP implementation of GestPay (Banca Sella) Web Services

Highlights
----------

[](#highlights)

- Simple API
- Decoupled classes
- PHPUnit tested
- Framework agnostic
- Composer ready, [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) and [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md) compliant

System Requirements
-------------------

[](#system-requirements)

You need **PHP &gt;= 5.6** and the `soap` extension to use the library, but the latest stable version of PHP is recommended.

Install
-------

[](#install)

Install `EndelWar/GestPayWS` using Composer.

```
$ composer require endelwar/gestpayws

```

Using
-----

[](#using)

### Crypt

[](#crypt)

```
require __DIR__ . '/../vendor/autoload.php';

use EndelWar\GestPayWS\WSCryptDecryptSoapClient;
use EndelWar\GestPayWS\WSCryptDecrypt;
use EndelWar\GestPayWS\Parameter\EncryptParameter;
use EndelWar\GestPayWS\Data;

// enable or disable test environment
$enableTestEnv = true;
$soapClient = new WSCryptDecryptSoapClient($enableTestEnv);
try {
    $gestpay = new WSCryptDecrypt($soapClient->getSoapClient());
} catch (\Exception $e) {
    var_dump($e->getCode(), $e->getMessage());
}

// set mandatory info
$encryptParameter = new EncryptParameter();
$encryptParameter->shopLogin = 'GESPAY12345';
$encryptParameter->amount = '1.23';
$encryptParameter->shopTransactionId = '1';
$encryptParameter->uicCode = Data\Currency::EUR;
$encryptParameter->languageId = Data\Language::ITALIAN;

// set optional custom info as array
$customArray = array('STORE_ID' => '42', 'STORE_NAME' => 'Shop Abc123');
$encryptParameter->setCustomInfo($customArray);

// encrypt data
$encryptResult = $gestpay->encrypt($encryptParameter);

// get redirect link to Banca Sella
echo $encryptResult->getPaymentPageUrl($encryptParameter->shopLogin, $soapClient->wsdlEnvironment);
```

### Decrypt

[](#decrypt)

```
require __DIR__ . '/../vendor/autoload.php';

use EndelWar\GestPayWS\Parameter\DecryptParameter;
use EndelWar\GestPayWS\WSCryptDecryptSoapClient;
use EndelWar\GestPayWS\WSCryptDecrypt;

// $_GET['a'] and $_GET['b'] are received from Banca Sella
$param = array(
    'shopLogin' => $_GET['a'],
    'CryptedString' => $_GET['b']
);

$decryptParam = new DecryptParameter($param);

// enable or disable test environment
$enableTestEnv = true;
$soapClient = new WSCryptDecryptSoapClient($enableTestEnv);
try {
    $gestpay = new WSCryptDecrypt($soapClient->getSoapClient());
    $decryptResult = $gestpay->decrypt($decryptParam);

    echo $decryptResult->TransactionResult;
} catch (\Exception $e) {
    var_dump($e->getCode(), $e->getMessage());
}
```

Testing
-------

[](#testing)

`EndelWar/GestPayWS` has a [PHPUnit](https://phpunit.de) test suite. To run the tests, run the following command from the project folder.

```
$ vendor/bin/phpunit
```

Contributing
------------

[](#contributing)

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Versioning
----------

[](#versioning)

Semantic versioning ([semver](http://semver.org/)) is applied.

License
-------

[](#license)

This library is under the MIT license. For the full copyright and license information, please view the LICENSE file that was distributed with this source code.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 97.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~145 days

Recently: every ~276 days

Total

10

Last Release

2754d ago

Major Versions

v0.1.0 → v1.0.02015-03-31

PHP version history (2 changes)v0.1.0PHP &gt;=5.3.3

v1.4.0PHP &gt;=5.6.7

### Community

Maintainers

![](https://www.gravatar.com/avatar/312fccd1e69edd1dad07c1011d4312c8d35ba71028d1b859aba859cd768984fb?d=identicon)[endelwar](/maintainers/endelwar)

---

Top Contributors

[![endelwar](https://avatars.githubusercontent.com/u/28512?v=4)](https://github.com/endelwar "endelwar (117 commits)")[![sangarbe](https://avatars.githubusercontent.com/u/10627477?v=4)](https://github.com/sangarbe "sangarbe (2 commits)")[![marcio199226](https://avatars.githubusercontent.com/u/10244404?v=4)](https://github.com/marcio199226 "marcio199226 (1 commits)")

---

Tags

bancasellagestpaypaymentpayment-gatewayphpsoapwebservicegestpaybancasella

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/endelwar-gestpayws/health.svg)

```
[![Health](https://phpackages.com/badges/endelwar-gestpayws/health.svg)](https://phpackages.com/packages/endelwar-gestpayws)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/braintree

Braintree gateway for Omnipay payment processing library

35558.0k3](/packages/omnipay-braintree)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
