PHPackages                             and/liqpay-api - 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. and/liqpay-api

ActiveLibrary[API Development](/categories/api)

and/liqpay-api
==============

LiqPay API

22.4kPHP

Since Oct 12Pushed 12y ago2 watchersCompare

[ Source](https://github.com/logical-and/liqpay-api)[ Packagist](https://packagist.org/packages/and/liqpay-api)[ RSS](/packages/and-liqpay-api/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

LiqPay API extension with Packagist compatibiluty
=================================================

[](#liqpay-api-extension-with-packagist-compatibiluty)

```
try
		{
			$api = $this->getAPI();
			$xml = $api->getPaymentForCallback($request->request->all());

			switch ($xml->status)
			{
				case 'success':
					$this->updateInvoice($xml->order_id, InvoiceDetail::STATUS_PAID);
					break;

				case 'wait_secure':
					$this->updateInvoice($xml->order_id, InvoiceDetail::STATUS_PROCESSING);
					break;

				default:
					$this->updateInvoice($xml->order_id, InvoiceDetail::STATUS_FAILURE);
			}

		} catch (\ErrorException $e)
		{
			/** @noinspection PhpUndefinedVariableInspection */
			$xml = $api->lastXml;
			switch ($e->getCode())
			{
				case API::ERROR_BAD_REQUEST:
					throw new NotFoundHttpException();

				case API::ERROR_SIGNATURE_MISMATCH:
					if ($xml->order_id)
					{
						$this->getLogger()->warn('Signature mismatch for OrderDetail#id ' . $xml->order_id);
					}
					throw new BadRequestHttpException($e->getMessage());

				default:
					throw $e;
			}
		}
```

```
$fields = $this->getAPI()->getFieldsForPayment(
	100,
	API::CURRENCY_USD,
	$redirect,
	$callback,
	$orderDetail->getId(),
	'Perevod polzovately "' . $orderDetail->getUserToPay()->getEmail() . '" ot polzovatelya "' . $orderDetail->getInvoice()->getUser()->getEmail() . '"',
	API::PAYWAY_LIQPAY | API::PAYWAY_CARD
)
```

```
$api->sendToPhone('ORDER_1', '380661234567', '10', 'UAH', 'Payment description');
$balance = $api->viewBalance();
```

Based on

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0499fdd6338e1520be3ab6776948652c429291c08b79504a2eec2315d73787ab?d=identicon)[And](/maintainers/And)

### Embed Badge

![Health badge](/badges/and-liqpay-api/health.svg)

```
[![Health](https://phpackages.com/badges/and-liqpay-api/health.svg)](https://phpackages.com/packages/and-liqpay-api)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

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

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

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

Telegram driver for BotMan

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

PHPackages © 2026

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