PHPackages                             lzaplata/csobpaymentgateway - 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. lzaplata/csobpaymentgateway

ActiveLibrary[Payment Processing](/categories/payments)

lzaplata/csobpaymentgateway
===========================

ČSOB payment gateway wrapper for Nette Framework.

035PHP

Since Dec 9Pushed 4y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

ČSOB
====

[](#čsob)

This is small Nette Framework wrapper for ČSOB payment gateway.

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

[](#installation)

The easiest way to install library is via Composer.

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

or edit `composer.json` in your project

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

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

```
extensions:
        csobPaymentGateway: LZaplata\CsobPaymentGateway\DI\Extension
```

Now you can set parameters...

```
csobPaymentGateway:
        merchantId      : *
        sandbox         : true
        currency        : CZK
        privateKey:
            path        : *
            password    : *
        publicKey       : *
```

...and autowire library to presenter

```
use LZaplata\CsobPaymentGateway\Service;

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

Usage
-----

[](#usage)

Create cart instance and add items.

```
$cart = new Cart();
$cart->setItem(
        $name,
        $quantity,
        $amount,                        // item price * quantity in lowest currency unit (1 CZK = 100)
        $description
);
```

Create payment.

```
$payment = $this->csobPaymentGateway->createPayment(
        $orderNo,
        $totalAmount,                    // payment price + transport price in lowest currency unit (1 CZK = 100)
        $returnUrl,
        $cart,                           // cart instace from step above
        $payOperation                    // type of payment operation - default Payment::NORMAL_PAYMENT
);
```

Send payment.

```
$response = $payment->send();
```

Get payment ID and save it to database.

```
$payId = $response->getPayId();
```

Redirect to payment gateway.

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

...or get redirect url.

```
$response->getRedirectUrl();
```

### After return from gateway

[](#after-return-from-gateway)

Get response and check if payment was successful

```
$response = $this->csobPaymentGateway->getReturnResponse();

if ($response->isOk()) {
    // do something
}
```

### Reverse payment

[](#reverse-payment)

Sometimes you must reverse your payment

```
$response = $this->csobPaymentGateway->reversePayment($payId);

if ($response->isReversed()) {
    // do something
}
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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 (10 commits)")

### Embed Badge

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

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

###  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/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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