PHPackages                             emanueledona/unicredit-api - 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. emanueledona/unicredit-api

ActiveLibrary

emanueledona/unicredit-api
==========================

71.1k3[1 issues](https://github.com/emanueledona/unicredit-api/issues)PHP

Since May 13Pushed 8y ago3 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Unicredit Api
=============

[](#unicredit-api)

Unicredit API (DEVELOPMENT)

Library to connect e-commerce to Unicredit ( Italy ) payment service.

Based on PHP libs of Unicredit, converted in PSR-4 format and wrapped in.

Install
-------

[](#install)

Use `composer require "emanueledona/unicredit-api:dev-master"` to install with composer the last version

Unicredit testing parameters
----------------------------

[](#unicredit-testing-parameters)

- serverURL : [https://testeps.netswgroup.it/UNI\_CG\_SERVICES/services](https://testeps.netswgroup.it/UNI_CG_SERVICES/services)
- kSig : "UNI\_TESTKEY"

Usage
-----

[](#usage)

Import library with `use emanueledona\unicreditApi\UnicreditApi;` .

Create object `$unicredit = new UnicreditApi();` .

### Invoche INIT

[](#invoche-init)

`$redirect = $unicredit->init($args);`

This function call the IgfsCgInit class, and perform the initialization of the authorization ( `IgfsCgInit::execute()` ).

The `$args` parameter is an array of elements :

- 'serverURL' =&gt; '[https://testeps.netswgroup.it/UNI\_CG\_SERVICES/services](https://testeps.netswgroup.it/UNI_CG_SERVICES/services)',
- 'timeout' =&gt; 15000,
- 'tid' =&gt; 'UNI\_ECOM',
- 'kSig' =&gt; 'UNI\_TESTKEY',
- 'trType' =&gt; 'AUTH',
- 'currencyCode' =&gt; 'EUR',
- 'langID' =&gt; 'IT',
- 'shopUserRef' =&gt; ##CLIENT\_EMAIL##,
- 'shopID' =&gt; ##ORDER\_ID##,
- 'amount' =&gt; ##TOTAL\_AMOUNT##, // this must be without decimals Ex.: 199.99 =&gt; (199.99\*100) = 19999
- 'notifyURL' =&gt; ##URL##, // URL to verify the correct execution of transaction
- 'errorURL' =&gt; ##URL##, // URL to manage errors

The function return a URL :

- if all OK the URL redirect to Unicredit payment system
- if there is a problem the URL redirect to `errorURL` whitin error information

#### Where is the paymentID ?

[](#where-is-the-paymentid-)

The `paymentID` is return by the function `$unicredit->getPaymentID()`, if there is not paymentID this function return NULL.

This value is important, this *MUST BE* stored in your system to ensure che payment verification and validation.

### Invoche VERIFY

[](#invoche-verify)

`$response = $unicredit->verify('your_paymentID',$args);`

This function perform a validation of the payment whit the method `IgfsCgVerify::execute()`.

To check if a payment is correct you need the `paymentID` and some configuration parameters:

- 'serverURL' =&gt; '[https://testeps.netswgroup.it/UNI\_CG\_SERVICES/services](https://testeps.netswgroup.it/UNI_CG_SERVICES/services)',
- 'timeout' =&gt; 15000,
- 'tid' =&gt; 'UNI\_ECOM',
- 'kSig' =&gt; 'UNI\_TESTKEY',
- 'shopID' =&gt; ##ORDER\_ID##, // This is the same used to start the payment's order

The function return an array :

- in case of success :

    - 'status' =&gt; 'OK',
    - 'rc' =&gt; $IgfsCgVerify-&gt;rc,
    - 'tranID' =&gt; $IgfsCgVerify-&gt;tranID,
    - 'enrStatus' =&gt; $IgfsCgVerify-&gt;enrStatus,
    - 'authStatus' =&gt; $IgfsCgVerify-&gt;authStatus,
- in case of errors :

    - 'status' =&gt; 'KO',
    - 'rc' =&gt; $IgfsCgVerify-&gt;rc,
    - 'errorDesc' =&gt; $IgfsCgVerify-&gt;errorDesc,

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9775e213d90ce48cf01313df99bd1f61b98dbbc4735243cada7c1a746d68545c?d=identicon)[emanueledona](/maintainers/emanueledona)

---

Top Contributors

[![emanueledona](https://avatars.githubusercontent.com/u/769518?v=4)](https://github.com/emanueledona "emanueledona (24 commits)")

### Embed Badge

![Health badge](/badges/emanueledona-unicredit-api/health.svg)

```
[![Health](https://phpackages.com/badges/emanueledona-unicredit-api/health.svg)](https://phpackages.com/packages/emanueledona-unicredit-api)
```

PHPackages © 2026

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