PHPackages                             biscolab/laravel-gestpay - 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. biscolab/laravel-gestpay

AbandonedArchivedLibrary[Payment Processing](/categories/payments)

biscolab/laravel-gestpay
========================

v1.2.1(7y ago)01.4k4[1 issues](https://github.com/biscolab/laravel-gestpay/issues)MITPHPPHP &gt;=5.5.9|7.\*

Since Jun 10Pushed 6y agoCompare

[ Source](https://github.com/biscolab/laravel-gestpay)[ Packagist](https://packagist.org/packages/biscolab/laravel-gestpay)[ RSS](/packages/biscolab-laravel-gestpay/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (3)Versions (11)Used By (0)

Laravel Gestpay Package (laravel-gestpay)
=========================================

[](#laravel-gestpay-package-laravel-gestpay)

[![Packagist version](https://camo.githubusercontent.com/28fc6eb6a96c7e85be9f043783eab3bd7ca8377dca1dccc8735854936225ab1b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626973636f6c61622f6c61726176656c2d676573747061792e737667)](https://camo.githubusercontent.com/28fc6eb6a96c7e85be9f043783eab3bd7ca8377dca1dccc8735854936225ab1b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626973636f6c61622f6c61726176656c2d676573747061792e737667) [![Build Status](https://camo.githubusercontent.com/c87d7667883da681e7df1be0f9176b387b4d733d57f3da51051c7446db4915cb/68747470733a2f2f73656d6170686f726563692e636f6d2f6170692f76312f626973636f6c61622f6c61726176656c2d676573747061792f6272616e636865732f76312f736869656c64735f62616467652e737667)](https://semaphoreci.com/biscolab/laravel-gestpay)

Gestpay - Banca Sella payment libraries for Laravel 5 The easiest way to allow your customers to pay with their credit card their purchase on your website using Gestay - Banca Sella **The documentation will be improved in the coming days**

Liability limitations
---------------------

[](#liability-limitations)

[![MIT License](https://camo.githubusercontent.com/1f7353433ac6f928944eaf70445cfb8265d56e123cc16f01921c044b4cfdeee7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f626973636f6c61622f6c61726176656c2d676573747061792e737667)](https://github.com/biscolab/laravel-gestpay/blob/master/LICENSE)

We are not and will not be responsible for any errors or problems caused by these files. **Please read Gestpay's official documentation carefully before using this package**.

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

[](#installation)

You can install the package via composer:

```
composer require biscolab/laravel-gestpay
```

The service **provider** must be registered in `config/app.php`:

```
'providers' => [
    ...
    Biscolab\Gestpay\GestpayServiceProvider::class,
];
```

You can use the facade for shorter code. Add "Gestpay" to your aliases:

```
'aliases' => [
    ...
    'Gestpay' => Biscolab\Gestpay\Facades\Gestpay::class,
];
```

Create `config/gestpay.php` configuration file using:

```
php artisan vendor:publish --provider="Biscolab\Gestpay\GestpayServiceProvider"

```

Configuration
-------------

[](#configuration)

### Laravel configuration

[](#laravel-configuration)

Open `config/gestpay.php` configuration file and set `shopLogin` and `uicCode`:

```
return [
    'shopLogin'      => 'YOUR_SHOP_LOGIN',
    'uicCode'        => 'CURRENCY_CODE',
    'test'           => true // supported: true|false
];
```

- **shopLogin** is the code that is assigned to your account
- **uicCode** is already set to 242 (Euro). You can find the complete list of currency codes [here](http://api.gestpay.it/#currency-codes)
- **test** if true it indicates that you are using your test account. More info at [Using Gestpay payment page ](http://docs.gestpay.it/pay/using-banca-sella-payment-page.html)

For more information about **shopLogin** and **uicCode** please visit [Gestpay - Creating your custom payment page](http://docs.gestpay.it/pay/creating-your-custom-payment-page.html)

### Gestpay configuration

[](#gestpay-configuration)

Login to your **Gestpay BackOffice** account and set:

- IP Address (your server IP, you can add more than one)
- Response Address
    - URL for positive response (e.g. https://\[yourdomain\]/gestpay\_callback/ok)
    - URL for negative response (e.g. https://\[yourdomain\]/gestpay\_callback/ko)

How to use
----------

[](#how-to-use)

### Ok, and now let's pay!

[](#ok-and-now-lets-pay)

As always, paying is the easiest thing

```
gestpay()->pay($amount, $shopTransactionId);
```

That's all!

- $amount: is the amount you have to pay
- $shopTransactionId: is the unique identifier you have assigned to the transaction

I was joking, that's not all! Now you have to handle the callback. Based on the gestpay configuration, you now have to create the routes. For example, you can create a controller that handles callbacks through the method "**gestpayCallback**"

```
    // e.g.
    Route::get('/gestpay_callback/{status}', ['uses' => 'GestpayController@gestpayCallback']);
```

Now, check whether the payment is succeeded. Gestpay response contains 2 parameters: a and b. `gestpayCallback` will be:

```
public function gestpayCallback($status){
    ...
    $gestpay_response = gestpay()->checkResponse();
}
```

`$gestpay_response` will be a GestpayResponse object. You can retrieve $gestpay\_response properties using the following methods:

- `$gestpay_response->getTransactionResult()` return **transaction\_result**; should be true or false
- `$gestpay_response->getShopTransactionId()` return **shop\_transaction\_id**; the `$shopTransactionId` you have sent through `pay` method
- `$gestpay_response->getErrorCode()` return **error\_code**; setting to "0" if the transaction is successful
- `$gestpay_response->getErrorDescription()` return **error\_description**; error code literal description in the language you have chosen

Then you can update your DB or everything you want!

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity64

Established project with proven stability

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 ~45 days

Recently: every ~96 days

Total

10

Last Release

2855d ago

Major Versions

v0.x-dev → v1.0.02017-06-15

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9263090?v=4)[Roberto Belotti](/maintainers/biscolab)[@biscolab](https://github.com/biscolab)

---

Tags

banca-sellabancasellagestpaylaravellaravel-frameworklaravel-gestpaypaymentpayment-gatewayphptransaction

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/biscolab-laravel-gestpay/health.svg)

```
[![Health](https://phpackages.com/badges/biscolab-laravel-gestpay/health.svg)](https://phpackages.com/packages/biscolab-laravel-gestpay)
```

###  Alternatives

[lemonsqueezy/laravel

A package to easily integrate your Laravel application with Lemon Squeezy.

58596.1k](/packages/lemonsqueezy-laravel)[ssheduardo/redsys-laravel

Package redsys for laravel

100129.5k1](/packages/ssheduardo-redsys-laravel)[duncanmcclean/simple-commerce

A simple, yet powerful e-commerce addon for Statamic.

16313.2k2](/packages/duncanmcclean-simple-commerce)[tsaiyihua/laravel-ecpay

ecpay library for laravel

6416.3k](/packages/tsaiyihua-laravel-ecpay)[alifaraun/laravel-moamalat-pay

Easy - Moamalat Lightbox integration for Laravel.

1914.0k](/packages/alifaraun-laravel-moamalat-pay)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

322.8k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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