PHPackages                             locastic/tcompayway - 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. locastic/tcompayway

ActiveLibrary[Payment Processing](/categories/payments)

locastic/tcompayway
===================

T-com PayWay Library (HT PayWay API)

2.0(10y ago)23.6k52MITPHPPHP &gt;=5.3.2CI failing

Since Feb 16Pushed 5y ago7 watchersCompare

[ Source](https://github.com/Locastic/TcomPayWay)[ Packagist](https://packagist.org/packages/locastic/tcompayway)[ Docs](https://github.com/locastic/TcomPayWay)[ RSS](/packages/locastic-tcompayway/feed)WikiDiscussions master Synced 1mo ago

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

HP PayWay API (TcomPayWay)
==========================

[](#hp-payway-api-tcompayway)

\#Installation Add repository to composer.json

```
"repositories": [
        {
            "url": "https://github.com/locastic/TcomPayWay.git",
            "type": "git"
        }
    ],

```

And inside "require" `"locastic/tcompayway": "@dev"`

and use `composer install`

\#Usage (Form)

`use Locastic\TcomPayWay\AuthorizeForm\Model\Payment;`

\###Create object &amp; populate data

```
$payment = new Payment(
    '1234556', //shop id
    'payway_secret',
    'order_id', //must be unique for each payment
    123, //amount
    0,
    'http://www.mojducan.com/success/narudžba456',
    'http://www.mojducan.com/failure/narudžba456'
    );
$payment->setPgwFirstName('name');
$payment->setPgwLastName('surname');
$payment->setPgwStreet('street');
$payment->setPgwPostCode('1234');
$payment->setPgwCity('Maribor');
$payment->setPgwCountry('Slovenia');
$payment->setPgwEmail('my.email@test.com');
$payment->setPgwPhoneNumber('1234567');

$payment->setPgwDisableInstallments(1);
$payment->setPgwAuthorizationType(0);
$payment->setPgwAuthorizationToken('');
$payment->setPgwReturnMethod('GET');
$payment->setPgwmerchantData('');
$payment->setPgwOrderInfo('');
$payment->setPgwOrderItems('');
$payment->setPgwLanguage('en');

```

\###Small test example on how send data (with Laravel 5)

```
{!! Form::open(['method' => 'POST', 'url' => 'https://pgwtest.ht.hr/services/payment/api/authorize-form']) !!}

{!! Form::hidden('pgw_shop_id', $payment->getPgwShopId()) !!}
{!! Form::hidden('pgw_order_id', $payment->getPgwOrderId()) !!}
{!! Form::hidden('pgw_language', $payment->getPgwLanguage()) !!}
{!! Form::hidden('pgw_amount', $payment->getPgwAmount()) !!}
{!! Form::hidden('pgw_authorization_type', $payment->getPgwAuthorizationType()) !!}
{!! Form::hidden('pgw_success_url', $payment->getPgwSuccessUrl()) !!}
{!! Form::hidden('pgw_failure_url', $payment->getPgwFailureUrl()) !!}
{!! Form::hidden('pgw_signature', Locastic\TcomPayWay\AuthorizeForm\Helpers\SignatureGenerator::generateSignature($payment)) !!}

{!! Form::hidden('pgw_authorization_token', $payment->getPgwAuthorizationToken()) !!}
{!! Form::hidden('pgw_return_method', $payment->getPgwReturnMethod()) !!}
{!! Form::hidden('pgw_first_name', $payment->getPgwFirstName()) !!}
{!! Form::hidden('pgw_last_name', $payment->getPgwLastName()) !!}
{!! Form::hidden('pgw_street', $payment->getPgwStreet()) !!}
{!! Form::hidden('pgw_city', $payment->getPgwCity()) !!}
{!! Form::hidden('pgw_post_code', $payment->getPgwPostCode()) !!}
{!! Form::hidden('pgw_country', $payment->getPgwCountry()) !!}
{!! Form::hidden('pgw_telephone', $payment->getPgwPhoneNumber()) !!}
{!! Form::hidden('pgw_email', $payment->getPgwEmail()) !!}
{!! Form::hidden('pgw_merchant_data', $payment->getPgwmerchantData()) !!}
{!! Form::hidden('pgw_order_info', $payment->getPgwOrderInfo()) !!}
{!! Form::hidden('pgw_order_items', $payment->getPgwOrderItems()) !!}
{!! Form::hidden('pgw_disable_installments', $payment->getPgwDisableInstallments()) !!}

{!! Form::submit("Add", ['class' => 'btn btn-success']) !!}

{!! Form::close() !!}

```

\###Reading response (example for Laravel 5.1)

```
$payment = new Payment(
    '1234556', //shop id
    'payway_secret',
    'order_id', //must be unique for each payment
    123, //amount
    0,
    'http://www.mojducan.com/success/narudžba456',
    'http://www.mojducan.com/failure/narudžba456'
    );

$payment->isPgwOrderedResponseValid($request->all()); //true or false
//or
$payment->isPgwResponseValid($request->all()); //true or false

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 96% 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.

###  Release Activity

Cadence

Every ~416 days

Total

2

Last Release

3692d ago

Major Versions

v1.0 → 2.02016-04-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/13758a6abd53618188475ebd3bab831a8669a3ebe7f9880a12a2ec1ba80b9643?d=identicon)[antonioperic](/maintainers/antonioperic)

---

Top Contributors

[![antonioperic](https://avatars.githubusercontent.com/u/2453151?v=4)](https://github.com/antonioperic "antonioperic (48 commits)")[![BojanKogoj](https://avatars.githubusercontent.com/u/634075?v=4)](https://github.com/BojanKogoj "BojanKogoj (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/locastic-tcompayway/health.svg)

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

###  Alternatives

[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)[noetix/pin-php

Pin Payment API Library

19836.8k1](/packages/noetix-pin-php)[dnetix/redirection

Library to connect with PlacetoPay Checkout service

17123.3k2](/packages/dnetix-redirection)

PHPackages © 2026

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