PHPackages                             festpay/paymentpage-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. festpay/paymentpage-sdk

ActiveLibrary[Payment Processing](/categories/payments)

festpay/paymentpage-sdk
=======================

FestPay PHP SDK

00PHP

Since Dec 20Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

FestPay PHP SDK
===============

[](#festpay-php-sdk)

[![Build Status](https://camo.githubusercontent.com/919d68ddf51feac93667cc258c8fdb5d96bdba1b1091af2f5c0173c3cab60844/68747470733a2f2f7472617669732d63692e636f6d2f666573747061792f7061796d656e74706167652d73646b2d7068702e7376673f6272616e63683d6d61696e)](https://travis-ci.com/festpay/paymentpage-sdk-php)

This is a set of libraries in the PHP language to ease integration of your service with the FestPay Payment Page.

Please note that for correct SDK operating you must have at least PHP 7.0.

Payment flow
------------

[](#payment-flow)

[![Payment flow](flow.png)](flow.png)

Installation
------------

[](#installation)

Install with composer

```
composer require festpay/paymentpage-sdk
```

### Get URL for payment

[](#get-url-for-payment)

```
$gate = new festpay\Gate('secret');
$payment = new festpay\Payment('11', 'some payment id');
$payment->setPaymentAmount(1000)->setPaymentCurrency('RUB');
$url = $gate->getPurchasePaymentPageUrl($payment);
```

`$url` here is the signed URL.

If you want to use another domain for URL you can change it with optional `Gate` constructor parameter:

```
new festpay\Gate('secret', 'https://mydomain.com/payment');
```

or change it with method

```
$gate->setPaymentBaseUrl('https://mydomain.com/payment');
```

### Handle callback from FestPay

[](#handle-callback-from-festpay)

You'll need to autoload this code in order to handle notifications:

```
$gate = new festpay\Gate('secret');
$callback = $gate->handleCallback($data);
```

`$data` is the JSON data received from payment system;

`$callback` is the Callback object describing properties received from payment system; `$callback` implements these methods:

1. `Callback::getPaymentStatus();`Get payment status.
2. `Callback::getPayment();`Get all payment data.
3. `Callback::getPaymentId();`Get payment ID in your system.

### TODO

[](#todo)

- Payment Page opening
- Notifications handling
- Direct Gate requests
- PHPDoc

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity24

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/9d15d20a542eba13187ce99778591f1f3551875456e6653bc1ee8808069efcb7?d=identicon)[festpay](/maintainers/festpay)

---

Top Contributors

[![festpay](https://avatars.githubusercontent.com/u/120710182?v=4)](https://github.com/festpay "festpay (12 commits)")

### Embed Badge

![Health badge](/badges/festpay-paymentpage-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/festpay-paymentpage-sdk/health.svg)](https://phpackages.com/packages/festpay-paymentpage-sdk)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[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)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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