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

ActiveLibrary[Payment Processing](/categories/payments)

psphost/paymentpage-sdk
=======================

PSPHost SDK

03PHP

Since May 3Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

PSPHost PHP SDK
===============

[](#psphost-php-sdk)

This is a set of libraries in the PHP language to ease integration of your service with the PSPHost 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 psphost/paymentpage-sdk
```

### Get URL for payment

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

```
$gate = new psphost\Gate('secret');
$payment = new psphost\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 psphost\Gate('secret', 'https://mydomain.com/payment');
```

or change it with method

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

### Handle callback from PSPHost

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

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

```
$gate = new psphost\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

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

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/35ff4e8e0eeb0d298f318a33641c580982baad55dac57adc946809c4099f54cf?d=identicon)[psphost](/maintainers/psphost)

---

Top Contributors

[![psphost](https://avatars.githubusercontent.com/u/132465971?v=4)](https://github.com/psphost "psphost (1 commits)")

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/psphost-paymentpage-sdk/health.svg)](https://phpackages.com/packages/psphost-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)
