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

ActiveLibrary[Payment Processing](/categories/payments)

ecommpay/paymentpage-sdk
========================

Ecommpay SDK

1.6.1(5mo ago)9570.2k—9.9%19[2 PRs](https://github.com/ITECOMMPAY/paymentpage-sdk-php/pulls)1PHPCI failing

Since Mar 27Pushed 5mo ago5 watchersCompare

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

READMEChangelog (9)Dependencies (2)Versions (21)Used By (1)

EcommPay PHP SDK
================

[](#ecommpay-php-sdk)

[![Build Status](https://camo.githubusercontent.com/d217b86434bb96f09019f711ced1bc60c586c37c0263d56a92185bdf7c2a09a8/68747470733a2f2f7472617669732d63692e6f72672f495445434f4d4d5041592f7061796d656e74706167652d73646b2d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ITECOMMPAY/paymentpage-sdk-php)[![Test Coverage](https://camo.githubusercontent.com/44444e8843dffa967da0da617fdab6c62cc273befdee6efbec8852c5610333dd/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f31336630333835333331363432343631636261372f746573745f636f766572616765)](https://codeclimate.com/github/ITECOMMPAY/paymentpage_sdk/test_coverage)[![Maintainability](https://camo.githubusercontent.com/7e055b970f90e1d3db1cb5ed8c466724c2fca9153f9968b78f91036910950b8e/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f31336630333835333331363432343631636261372f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/ITECOMMPAY/paymentpage_sdk/maintainability)

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

### Get URL for payment

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

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

or change it with method

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

### Handle callback from Ecommpay

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

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

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

57

—

FairBetter than 98% of packages

Maintenance73

Regular maintenance activity

Popularity46

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity69

Established project with proven stability

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

Recently: every ~124 days

Total

10

Last Release

152d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c1d26fe8fd1d52f48ded3b7e727fb0ee12926e039475d2a0aa21d54fe43301ed?d=identicon)[ugnku](/maintainers/ugnku)

![](https://www.gravatar.com/avatar/cbfc255510e0f8768cfaad03539856866fdca7c4bde9c6cc03d50b4abc66a375?d=identicon)[ECOMMPAY](/maintainers/ECOMMPAY)

---

Top Contributors

[![zhukovra](https://avatars.githubusercontent.com/u/289431?v=4)](https://github.com/zhukovra "zhukovra (11 commits)")[![sbaronenkov](https://avatars.githubusercontent.com/u/47111734?v=4)](https://github.com/sbaronenkov "sbaronenkov (10 commits)")[![MikiDylewski](https://avatars.githubusercontent.com/u/113016950?v=4)](https://github.com/MikiDylewski "MikiDylewski (7 commits)")[![grevoman](https://avatars.githubusercontent.com/u/3351022?v=4)](https://github.com/grevoman "grevoman (7 commits)")[![blakw0lf](https://avatars.githubusercontent.com/u/454333?v=4)](https://github.com/blakw0lf "blakw0lf (4 commits)")[![ugnku](https://avatars.githubusercontent.com/u/104075008?v=4)](https://github.com/ugnku "ugnku (3 commits)")[![Ol0ff](https://avatars.githubusercontent.com/u/104077447?v=4)](https://github.com/Ol0ff "Ol0ff (1 commits)")[![freebuu](https://avatars.githubusercontent.com/u/9998200?v=4)](https://github.com/freebuu "freebuu (1 commits)")[![mattrh](https://avatars.githubusercontent.com/u/59623366?v=4)](https://github.com/mattrh "mattrh (1 commits)")[![wildserj](https://avatars.githubusercontent.com/u/115706312?v=4)](https://github.com/wildserj "wildserj (1 commits)")[![cckobal](https://avatars.githubusercontent.com/u/17452134?v=4)](https://github.com/cckobal "cckobal (1 commits)")[![sgnrslv](https://avatars.githubusercontent.com/u/16165262?v=4)](https://github.com/sgnrslv "sgnrslv (1 commits)")

---

Tags

paymentsphpsdk

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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