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 2d 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 14% 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://www.gravatar.com/avatar/21e359158717ff6a2f55493600405fb6ad93e5b2cc9c92d0f34743c7e8658bf6?d=identicon)[Zap](/maintainers/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/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

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

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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