PHPackages                             unio/24pay - 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. unio/24pay

ActiveLibrary[Payment Processing](/categories/payments)

unio/24pay
==========

Implementace platební brány 24pay.sk

0106PHP

Since Mar 5Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Ivorius/24pay)[ Packagist](https://packagist.org/packages/unio/24pay)[ RSS](/packages/unio-24pay/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

24pay.sk
========

[](#24paysk)

Propojení s platební bránou 24pay.sk

Vytvoření požadavku platby
--------------------------

[](#vytvoření-požadavku-platby)

```
try {
	// nastavení údajů získaných po podpisu smlouvy
	$settings24 = new \TwentyFourPay\ShopSettings("MID","ESHOPID","PASS");

	//priprava pro odeslani
	$request = new \TwentyFourPay\Request($settings24);
	$request->setAmount($amount);
	$request->setCurrency("EUR");
	$request->setVariableSymbol($variabilni_symbol);
	$request->setFirstName($firstname);
	$request->setFamilyName($lastname);
	$request->setClientId($clientId);
	$request->setCountry("SVK");
	$request->setEmail($mail);

	//zkontroluje zda-li jsou nastavena vsechna potrebna data pro odeslani
	$request->checkData();

	// vytvorit formular s odesilacim tlacitkem
	echo $request->getForm('');

	// nebo ziskat data pro odeslani napr. ajaxem
	$string = $request->getFormData("string");
	$json = $request->getFormData("json");

} catch (\Exception $e) {
    echo $e->getMessage();
}
```

Přijetí odpovědi z brány
------------------------

[](#přijetí-odpovědi-z-brány)

```
$data = $_POST["params"];
try {
	$settings24 = new TwentyFourPay\ShopSettings(MID, ESHOPID, PASS);

	$xml = simplexml_load_string($data);
	$transaction = new TwentyFourPay\Transaction\SimpleXmlProcess($xml);

	$response = new TwentyFourPay\Response($settings24, $transaction);
	if ($response->isValid()) {
		//odpoved je validni (spravne podepsana), zjisti vysledek zpracovani
		 $result = $transaction->getResult();
	} else {
		//zaloguj chybu
	}

} catch (\Exception $e) {

}
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

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/552101?v=4)[Ivo Toman](/maintainers/Ivorius)[@Ivorius](https://github.com/Ivorius)

---

Top Contributors

[![Ivorius](https://avatars.githubusercontent.com/u/552101?v=4)](https://github.com/Ivorius "Ivorius (3 commits)")

### Embed Badge

![Health badge](/badges/unio-24pay/health.svg)

```
[![Health](https://phpackages.com/badges/unio-24pay/health.svg)](https://phpackages.com/packages/unio-24pay)
```

###  Alternatives

[omnipay/coinbase

Coinbase driver for the Omnipay payment processing library

18570.2k1](/packages/omnipay-coinbase)

PHPackages © 2026

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