PHPackages                             webchemistry/thepay - 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. webchemistry/thepay

ActiveLibrary[Payment Processing](/categories/payments)

webchemistry/thepay
===================

1.0.0(9y ago)0292PHPPHP &gt;=5.5

Since Jul 6Pushed 7y ago1 watchersCompare

[ Source](https://github.com/WebChemistry/thepay)[ Packagist](https://packagist.org/packages/webchemistry/thepay)[ RSS](/packages/webchemistry-thepay/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/08e4685358df5ab245cd73c8125f1e70dc981eeb046234cd81144005a58bb4c9/68747470733a2f2f7472617669732d63692e6f72672f5765624368656d69737472792f7468657061792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/WebChemistry/thepay)

Integration of [payment gate thepay](https://www.thepay.cz/). This library **uses** their [component](https://www.thepay.cz/ke-stazeni/), version 3.2.2, 16.2.2017 (you can see in 'lib' directory)

Installation with Nette
-----------------------

[](#installation-with-nette)

```
extensions:
    thePay: WebChemistry\ThePay\DI\ThePayExtension
```

Configuration with Nette
------------------------

[](#configuration-with-nette)

```
thePay:
    merchantId: 1
    accountId: 3
    password: myPassword
```

Configuration without Nette
---------------------------

[](#configuration-without-nette)

```
$config = [
    'merchantId' => 100,
    'accountId' => 100,
    'password' => 'pswd',
    'dataApiPassword' => 'apiPswd'
];
$thepay = new WebChemistry\ThePay\ThePay($config);
```

Display payment component
-------------------------

[](#display-payment-component)

```
/** @var WebChemistry\ThePay\ThePay */
$thepay;

$sender = $thePay->createSender(199); // Price

$sender->setDescription('Super product'); // Description for easier identification in administration
$sender->setMerchantData('Customer id is 150.');
// or
$sender->setMerchantData([
    'customer' => 150
]);

echo $sender->render();
```

Receives payment
----------------

[](#receives-payment)

```
/** @var WebChemistry\ThePay\ThePay */
$thepay;

$receiver = $thepay->getReceiver();

if (!$receiver->verifySignature(FALSE)) {
    die('Bad request.');
}
if (!$receiver->isSuccess()) {
    die('Payment was not successful.');
}
// Get info from api
$remotePayment = $receiver->getRemotePayment();
if ($remotePayment) {
    $remotePayment->getValue(); // Price
}
```

Permanent payments
------------------

[](#permanent-payments)

```
$payment = $thepay->createPermanent('merchantData', 'description', 'localhost/returnUrl.php');

$payment->getMethods(); // Array of methods with payment information
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3647d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/312e788a47a251e05734378921d4596a91819b7de416fa18e77aa69e08798ea8?d=identicon)[Antik](/maintainers/Antik)

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/webchemistry-thepay/health.svg)

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

###  Alternatives

[omnipay/coinbase

Coinbase driver for the Omnipay payment processing library

18579.5k1](/packages/omnipay-coinbase)

PHPackages © 2026

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