PHPackages                             flowwow/cloudpayments-php-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. flowwow/cloudpayments-php-client

ActiveLibrary

flowwow/cloudpayments-php-client
================================

cloudpayments api client

3.0.16(2mo ago)2188.2k↓16.9%15[1 PRs](https://github.com/flowwow/cloudpayments-php-client/pulls)MITPHPPHP &gt;=7.4

Since May 27Pushed 5mo ago28 watchersCompare

[ Source](https://github.com/flowwow/cloudpayments-php-client)[ Packagist](https://packagist.org/packages/flowwow/cloudpayments-php-client)[ RSS](/packages/flowwow-cloudpayments-php-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (58)Used By (0)

Cloudpayments api Library
=========================

[](#cloudpayments-api-library)

Оглавление
----------

[](#оглавление)

- [Установка](#%D1%83%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%BA%D0%B0)
- [Начало работы](#%D0%BD%D0%B0%D1%87%D0%B0%D0%BB%D0%BE-%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D1%8B)
- [Поддерживаемые методы](#%D0%BF%D0%BE%D0%B4%D0%B4%D0%B5%D1%80%D0%B6%D0%B8%D0%B2%D0%B0%D0%B5%D0%BC%D1%8B%D0%B5-%D0%BC%D0%B5%D1%82%D0%BE%D0%B4%D1%8B)
- [Параметры запроса](#%D0%BF%D0%B0%D1%80%D0%B0%D0%BC%D0%B5%D1%82%D1%80%D1%8B-%D0%B7%D0%B0%D0%BF%D1%80%D0%BE%D1%81%D0%B0)
- [Параметры ответа](#%D0%BF%D0%B0%D1%80%D0%B0%D0%BC%D0%B5%D1%82%D1%80%D1%8B-%D0%BE%D1%82%D0%B2%D0%B5%D1%82%D0%B0)
- [Уведомления](#%D1%83%D0%B2%D0%B5%D0%B4%D0%BE%D0%BC%D0%BB%D0%B5%D0%BD%D0%B8%D1%8F)
- [Идемпотентность](#%D0%B8%D0%B4%D0%B5%D0%BC%D0%BF%D0%BE%D1%82%D0%B5%D0%BD%D1%82%D0%BD%D0%BE%D1%81%D1%82%D1%8C)

Установка
---------

[](#установка)

Установить библиотеку можно с помощью composer:

```
composer require flowwow/cloudpayments-php-client

```

Начало работы
-------------

[](#начало-работы)

```
$publicId = /*...*/;
$pass = /*...*/;
$apiClient = new \Flowwow\Cloudpayments\Library($publicId, $pass);
$response = $apiClient->paymentsCardsCharge(new \Flowwow\Cloudpayments\Request\CardsPayment(
    100,
    'RUB',
    '123.123.123.123',
    '01492500008719030128SMfLeYdKp5dSQVIiO5l6ZCJiPdel4uDjdFTTz1UnXY'
));

echo $response->success;
```

Поддерживаемые методы
---------------------

[](#поддерживаемые-методы)

Библиотека поддерживает большое количество методов api(). Для параметров запроса и ответа поддерживается объект-обертка.

```
$apiClient = new \Flowwow\Cloudpayments\Library(\*...*\);
$apiClient->paymentsCardsCharge(\*...*\);
```

Метод apiМетод libraryОбъект RequestОбъект Responsepayments/cards/chargepaymentsCardsChargeTransactionWith3dsResponseTransactionWith3dsResponsepayments/cards/authcreatePaymentByCard2StepTransactionWith3dsResponseTransactionWith3dsResponsepayments/tokens/chargeexecutePaymentByTokenTokenPaymentTransactionResponsepayments/tokens/authexecutePaymentByTokenTokenPaymentTransactionResponsepayments/confirmconfirmPaymentPaymentsConfirmCloudResponsepayments/voidcancelPaymentPaymentsVoidCloudResponsepayments/refundpaymentsRefundPaymentsRefundTransactionResponsepayments/cards/topuppaymentsCardsTopupCardsTopUpTransactionResponsepayments/token/topuppaymentsTokenTopupTokenTopUpTransactionResponsepayments/getgetPaymentDataPaymentsGetTransactionResponsepayments/findgetPaymentDataByInvoicePaymentsFindTransactionResponsepayments/listgetListPaymentPaymentsListTransactionArrayResponsepayments/tokens/listpaymentsTokensListTokenListTokenArrayResponsesubscriptions/createsubscriptionsCreateSubscriptionCreateSubscriptionResponsesubscriptions/getsubscriptionsGetSubscriptionGetSubscriptionResponsesubscriptions/findsubscriptionsFindSubscriptionFindSubscriptionArrayResponsesubscriptions/updatesubscriptionsUpdateSubscriptionUpdateSubscriptionResponsesubscriptions/cancelsubscriptionsCancelSubscriptionCancelCloudResponseorders/createordersCreateOrderCreateOrderResponseorders/cancelordersCancelOrderCancelCloudResponsesite/notifications/{Type}/getsiteNotificationsGetNotificationsGetNotificationResponsesite/notifications/{Type}/updatesiteNotificationsUpdateNotificationsUpdateCloudResponseapplepay/startsessionstartSessionApplepayStartSessionAppleSessionResponseПараметры запроса
-----------------

[](#параметры-запроса)

Параметры запроса обернуты в dto-объект

```
...
$validationUrl = 'https://apple-pay-gateway.apple.com/paymentservices/startSession';
$request = new \Flowwow\Cloudpayments\Request\ApplepayStartSession($validationUrl);
$apiClient->startSession($request);
```

Библиотека может выбрасывать ошибку `BadTypeException` при формировании request-объекта

```
try {
    ...
    $validationUrl = 'https://apple-pay-gateway.apple.com/paymentservices/startSession';
    $request = new \Flowwow\Cloudpayments\Request\ApplepayStartSession($validationUrl);
    ...
} catch (\Flowwow\Cloudpayments\Exceptions\BadTypeException $e) {
    var_dump($e->getMessage());
}
```

Параметры ответа
----------------

[](#параметры-ответа)

Параметры ответа так же обернуты в dto-объект. `CloudResponse` имеет 3 свойства: `success`, `message`, `model`

В свойство `model` записывается нужная сущность, в зависимости от запроса.

Список поддерживаемых сущностей:

- `AppleSessionModel`
- `NotificationModel`
- `SubscriptionModel`
- `TokenModel`
- `TransactionModel`
- `TransactionWith3dsModel`

Уведомления
-----------

[](#уведомления)

Библиотека включает в себя dto-объекты для параметров веб хуков

```
$hookData = new \Flowwow\Cloudpayments\Hook\HookPay($_POST);
echo $hookData->transactionId;
```

Список всех уведомлений -

WebhookОбъектCheckHookCheckPayHookPayFailHookFailConfirmHookConfirmRefundHookRefundRecurrentHookRecurrentCancelHookCancelИдемпотентность
---------------

[](#идемпотентность)

Библиотека поддерживает идемпотентные запросы

```
...
$apiClient = new \Flowwow\Cloudpayments\Library(\*...*\);
$apiClient->setIdempotency(true);
$apiClient->createPaymentByCard2Step(\*...*\);
...
```

License
-------

[](#license)

MIT

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance79

Regular maintenance activity

Popularity43

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor2

2 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 ~47 days

Total

38

Last Release

60d ago

Major Versions

1.1.3 → 2.0.02021-09-06

2.0.13 → 3.0.02023-09-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/60e8213d67c7fa1bfee99cdd089e99c39c389ddda1f4796d4ebef8cd2f0092ca?d=identicon)[Flowwow](/maintainers/Flowwow)

---

Top Contributors

[![Msik](https://avatars.githubusercontent.com/u/25433251?v=4)](https://github.com/Msik "Msik (26 commits)")[![Aleksey-Nabok](https://avatars.githubusercontent.com/u/180296348?v=4)](https://github.com/Aleksey-Nabok "Aleksey-Nabok (12 commits)")[![PetrIvanovFlow](https://avatars.githubusercontent.com/u/137167731?v=4)](https://github.com/PetrIvanovFlow "PetrIvanovFlow (10 commits)")[![vatr666](https://avatars.githubusercontent.com/u/170302137?v=4)](https://github.com/vatr666 "vatr666 (9 commits)")[![anton-smolenov](https://avatars.githubusercontent.com/u/48489811?v=4)](https://github.com/anton-smolenov "anton-smolenov (7 commits)")[![petryalta](https://avatars.githubusercontent.com/u/3663509?v=4)](https://github.com/petryalta "petryalta (5 commits)")[![vatrcore](https://avatars.githubusercontent.com/u/62613707?v=4)](https://github.com/vatrcore "vatrcore (3 commits)")[![freefess](https://avatars.githubusercontent.com/u/4992394?v=4)](https://github.com/freefess "freefess (1 commits)")[![proilyxa](https://avatars.githubusercontent.com/u/60401505?v=4)](https://github.com/proilyxa "proilyxa (1 commits)")[![alex-goal](https://avatars.githubusercontent.com/u/33321707?v=4)](https://github.com/alex-goal "alex-goal (1 commits)")

---

Tags

cloudpaymentscloudpayments api

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/flowwow-cloudpayments-php-client/health.svg)

```
[![Health](https://phpackages.com/badges/flowwow-cloudpayments-php-client/health.svg)](https://phpackages.com/packages/flowwow-cloudpayments-php-client)
```

###  Alternatives

[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19562.3M1.3k](/packages/drupal-core)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[netflie/whatsapp-cloud-api

The first PHP SDK to send and receive messages using a cloud-hosted version of the WhatsApp Business Platform

640431.7k4](/packages/netflie-whatsapp-cloud-api)[tempest/framework

The PHP framework that gets out of your way.

2.1k23.1k9](/packages/tempest-framework)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

517.9M7](/packages/avalara-avataxclient)[akamai-open/edgegrid-client

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client\_Auth.html

482.5M6](/packages/akamai-open-edgegrid-client)

PHPackages © 2026

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