PHPackages                             lzaplata/certitrade - 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. [Framework](/categories/framework)
4. /
5. lzaplata/certitrade

ActiveLibrary[Framework](/categories/framework)

lzaplata/certitrade
===================

Certitrade wrapper for Nette Framework.

09PHP

Since Feb 5Pushed 8y ago1 watchersCompare

[ Source](https://github.com/LZaplata/Certitrade)[ Packagist](https://packagist.org/packages/lzaplata/certitrade)[ RSS](/packages/lzaplata-certitrade/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Certitrade
==========

[](#certitrade)

This is small Nette Framework wrapper for Certitrade gateway.

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

[](#installation)

The easiest way to install library is via Composer.

```
$ composer require lzaplata/certitrade: dev-master
```

or edit `composer.json` in your project

```
"require": {
        "lzaplata/certitrade": "dev-master"
}
```

You have to register the library as extension in `config.neon` file.

```
extensions:
        payu: LZaplata\Certitrade\DI\Extension
```

Now you can set parameters...

```
certitrade:
        merchantId      : *
        apiKey          : *
        sandbox         : true
        language        : en        // must be 2 digits language code
        currency        : SEK       // must be 3 digits uppercase currency code
```

...and autowire library to presenter

```
use LZaplata\Certitrade\Service;

/** @var Service @inject */
public $certitrade;
```

Usage
-----

[](#usage)

### Before payment

[](#before-payment)

In first step you must create new payment.

```
$payment = $this->certitrade->createOrder([
        "description" => $description,
        "amount" => $price,                         // order price in lowest currency unit (1 CZK = 100)
        "reference" => $id,                         // eshop unique id
        "return_url" => $returnUrl,                 // return url from gateway (no matter of payment result)
        "callback_url" => $callbackUrl,             // url to report back via POST call while payment is under way
]);
```

Second step decides if creating order is successful...

```
try {
        $response = $this->certitrade->pay($payment);
} catch (\Exception $e) {
        print $e->getMessage();
}
```

...before redirecting to gateway you can get Certitrade ID and merge it with your order

```
$certitradeId = $response->id;

// updates order
$this->updateOrder($certitradeId);
```

...and finally you can redirect to gateway.

```
$this->sendResponse($response);
```

### After payment

[](#after-payment)

You can get payment via Certitrade ID...

```
$payment = $this->certitrade->getPayment($certitradeId);
```

...end decide if payment has been payed.

```
if ($this->certitrade->isPaid($payment)) {
    // do something
} else {
    // otherwise do something else
}
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

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://avatars.githubusercontent.com/u/7967?v=4)[Lillian Baker](/maintainers/Zap)[@Zap](https://github.com/Zap)

---

Top Contributors

[![LZaplata](https://avatars.githubusercontent.com/u/12596881?v=4)](https://github.com/LZaplata "LZaplata (1 commits)")

### Embed Badge

![Health badge](/badges/lzaplata-certitrade/health.svg)

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

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k104.3M836](/packages/laravel-socialite)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k38.6M289](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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