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 3d 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 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

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/5d3bb459ae64cc649c9c052b834b45503e3930a6c8254c8d4dcbd27fdacad00b?d=identicon)[viras34](/maintainers/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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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