PHPackages                             oneb-pub/liqpay-php-sdk - 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. oneb-pub/liqpay-php-sdk

ActiveLibrary[Payment Processing](/categories/payments)

oneb-pub/liqpay-php-sdk
=======================

PHP SDK for LiqPay

0.2.3(1y ago)128Apache-2.0PHPPHP &gt;=7.4

Since Mar 13Pushed 1y agoCompare

[ Source](https://github.com/oneb-pub/liqpay-php-sdk)[ Packagist](https://packagist.org/packages/oneb-pub/liqpay-php-sdk)[ Docs](https://github.com/oneb-pub/liqpay-sdk-php)[ RSS](/packages/oneb-pub-liqpay-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)DependenciesVersions (7)Used By (0)

[![](https://camo.githubusercontent.com/4c414660ea808f290c8aa16d2ede19373f264de78d4b9ebc38a3770aca61da23/68747470733a2f2f7777772e6c69717061792e75612f6c6f676f5f6c705f6e6174696f6e616c5f646b2e7376673f763d31373430363638393338303335)](https://camo.githubusercontent.com/4c414660ea808f290c8aa16d2ede19373f264de78d4b9ebc38a3770aca61da23/68747470733a2f2f7777772e6c69717061792e75612f6c6f676f5f6c705f6e6174696f6e616c5f646b2e7376673f763d31373430363638393338303335) PHP SDK від [![OneB Logo](https://camo.githubusercontent.com/3cdefabd3de6a4ff571d70b0a55cac5efb18d67a679bc367b4c09dfce6636554/68747470733a2f2f6f6e65622e6170702f5f6970782f715f39352f696d6167652f4c6f676f4f6e65422e706e67)](https://camo.githubusercontent.com/3cdefabd3de6a4ff571d70b0a55cac5efb18d67a679bc367b4c09dfce6636554/68747470733a2f2f6f6e65622e6170702f5f6970782f715f39352f696d6167652f4c6f676f4f6e65422e706e67)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#-php-sdk-від-)

Редакція від OneB

#### Requirements

[](#requirements)

- php &gt;=7.4

#### Поточна документація від LiqPay

[](#поточна-документація-від-liqpay)

#### Встановлення

[](#встановлення)

```
composer require oneb-pub/liqpay-php-sdk
```

#### Генерація посилання на оплату

[](#генерація-посилання-на-оплату)

```
$client = new \LiqPay\Client('','');

$url = $client->createPaymentLink()
    ->setAmount(100.12)
    ->setCurrency('USD')
    ->setDescription('Оплата рахунку №1251-2')
    ->setLanguage('uk')
    ->setReferenceId('12345_lkm347sd') //Ваш унікальний ідентифікатор даного платежу
    ->setReturnUrl('https://oneb.app')
    ->setWebhookUrl('https://example.com/liqpay-webhook') // Викликаєте, якщо хочете отримати веб-хук із даними про платіж
    ->setExpirationDate(\Carbon\Carbon::now()->addHours(12))
    ->createToken() // Викликаєте, якщо потрібно токенізувати картку
    ->generate();

print_r(PHP_EOL.$url.PHP_EOL);
```

#### Оплата по токену

[](#оплата-по-токену)

```
$client = new \LiqPay\Client('','');

$charge = $client->createPaymentByToken()
    ->setCardToken('sandbox_token')
    ->setAmount(100.12)
    ->setCurrency('USD')
    ->setDescription('Оплата рахунку №1251-2')
    ->setLanguage('uk')
    ->setReferenceId('12345_lkm347sd') //Ваш унікальний ідентифікатор даного платежу
    ->setWebhookUrl('https://example.com/liqpay-webhook');

$result = $charge->prepare()->charge(); // Підготовка платежу - необовʼязковий крок
if(in_array($result['status'],['error','failure'])){
    $errorDescription = $client->tryDescribeError($result['err_code'])??$result['err_description']??'Невідома помилка';
    print "Помилка підготовки платежу: {$errorDescription}";
    exit(1);
}

$result = $charge->prepare(false)->charge();

print_r(PHP_EOL.$result.PHP_EOL);
```

#### Отримання статусу платежу

[](#отримання-статусу-платежу)

```
$client = new \LiqPay\Client('','');

$paymentInfo = $client->getPaymentStatus('12345_823gf3');

print_r(PHP_EOL.$paymentInfo.PHP_EOL);
```

P.S.
----

[](#ps)

API LiqPay містить також і інші фукнції та можливості, тут було релізовано те, що потребувалось. Можливе розширення бібліотеки за потреби, або за допомогою ваших pull-реквестів

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance47

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor3

3 contributors hold 50%+ of commits

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 ~5 days

Total

6

Last Release

398d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/99139e5345c24635edd267522d4dd58b40782b2b1dd99b6daaad2e49f89ce20d?d=identicon)[plakidan](/maintainers/plakidan)

---

Top Contributors

[![pb-web-develop](https://avatars.githubusercontent.com/u/6715726?v=4)](https://github.com/pb-web-develop "pb-web-develop (20 commits)")[![viplifes](https://avatars.githubusercontent.com/u/286489?v=4)](https://github.com/viplifes "viplifes (16 commits)")[![plakidan](https://avatars.githubusercontent.com/u/18316735?v=4)](https://github.com/plakidan "plakidan (15 commits)")[![OleksiiKliuiev](https://avatars.githubusercontent.com/u/139246609?v=4)](https://github.com/OleksiiKliuiev "OleksiiKliuiev (7 commits)")[![kagatan](https://avatars.githubusercontent.com/u/27299810?v=4)](https://github.com/kagatan "kagatan (3 commits)")[![ftw-soft](https://avatars.githubusercontent.com/u/3994510?v=4)](https://github.com/ftw-soft "ftw-soft (2 commits)")[![Dmitry-Y-Kapustin](https://avatars.githubusercontent.com/u/25437643?v=4)](https://github.com/Dmitry-Y-Kapustin "Dmitry-Y-Kapustin (1 commits)")[![andrewdidovik](https://avatars.githubusercontent.com/u/5871336?v=4)](https://github.com/andrewdidovik "andrewdidovik (1 commits)")[![miserenkov](https://avatars.githubusercontent.com/u/12072466?v=4)](https://github.com/miserenkov "miserenkov (1 commits)")[![oliinykdm](https://avatars.githubusercontent.com/u/5325428?v=4)](https://github.com/oliinykdm "oliinykdm (1 commits)")[![r-kovalenko](https://avatars.githubusercontent.com/u/2025625?v=4)](https://github.com/r-kovalenko "r-kovalenko (1 commits)")[![Gregoire-M](https://avatars.githubusercontent.com/u/475728?v=4)](https://github.com/Gregoire-M "Gregoire-M (1 commits)")[![andreybolonin](https://avatars.githubusercontent.com/u/2576509?v=4)](https://github.com/andreybolonin "andreybolonin (1 commits)")[![AndriyVoloshin](https://avatars.githubusercontent.com/u/4062369?v=4)](https://github.com/AndriyVoloshin "AndriyVoloshin (1 commits)")[![AntonShevel](https://avatars.githubusercontent.com/u/5391187?v=4)](https://github.com/AntonShevel "AntonShevel (1 commits)")[![bocharsky-bw](https://avatars.githubusercontent.com/u/3317635?v=4)](https://github.com/bocharsky-bw "bocharsky-bw (1 commits)")[![denisatemash](https://avatars.githubusercontent.com/u/16500279?v=4)](https://github.com/denisatemash "denisatemash (1 commits)")

---

Tags

payliqpayprivatbank

### Embed Badge

![Health badge](/badges/oneb-pub-liqpay-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/oneb-pub-liqpay-php-sdk/health.svg)](https://phpackages.com/packages/oneb-pub-liqpay-php-sdk)
```

###  Alternatives

[liqpay/liqpay

SDK for Liqpay

111678.8k9](/packages/liqpay-liqpay)

PHPackages © 2026

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