PHPackages                             viras34/tpay-api-client - 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. [API Development](/categories/api)
4. /
5. viras34/tpay-api-client

ActiveProject[API Development](/categories/api)

viras34/tpay-api-client
=======================

tPay API client.

025PHPCI failing

Since Dec 6Pushed 4y ago1 watchersCompare

[ Source](https://github.com/viras34/tpay-api-client)[ Packagist](https://packagist.org/packages/viras34/tpay-api-client)[ RSS](/packages/viras34-tpay-api-client/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#installation)

Via [composer](https://getcomposer.org)

```
composer require viras34/tpay-api-client
```

Create new tPay transaction
---------------------------

[](#create-new-tpay-transaction)

```
use \Viras\Tpay\Client;

$client = new Client([
    'apiKey'=>'75f86137a6635df826e3efe2e66f7c9a946fdde1',
    'apiPass'=>'p@$$w0rd#@!'
]);

$transaction = $client->transaction->create([
    'merchantId'=>'1010',
    'merchantSecret'=>'demo',
    'amount' => 999.99,
    'description' => 'Transaction description',
    'crc' => '3214',
    'result_url' => 'http://example.pl/transaction_confirmation',
    'result_email' => 'shop@example.com',
    'return_url' => 'http://example.pl/',
    'email' => 'customer@example.com',
    'name' => 'John Doe',
    'language' => 'en',
    'group' => 150,
    'accept_tos' => 1,
]);

print_r($transaction);

/*
stdClass Object
(
[result] => 1
[title] => TR-BRA-1D7Z9TX
[amount] => 999.99
[online] => 1
[url] => https://secure.tpay.com/?gtitle=TR-BRA-1D7Z9TX
)
*/
```

Method returns transaction title required for other API methods and redirection link for a customer.

Send Blik code
--------------

[](#send-blik-code)

```
$result = $client->transaction->blik([
    'title'=>$response->title,
    'code'=>'123456',
    'amount' => 999.99,
]);

print_r($result);

/*
stdClass Object
(
    [result] => 1
)
*/
```

Method returns parameter ‘result’ equal to 1 which means that payment popup has been successfully displayed at customer mobile application.

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

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://avatars.githubusercontent.com/u/4147424?v=4)[Stefan](/maintainers/viras34)[@viras34](https://github.com/viras34)

---

Top Contributors

[![viras34](https://avatars.githubusercontent.com/u/4147424?v=4)](https://github.com/viras34 "viras34 (10 commits)")

### Embed Badge

![Health badge](/badges/viras34-tpay-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/viras34-tpay-api-client/health.svg)](https://phpackages.com/packages/viras34-tpay-api-client)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M19](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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