PHPackages                             netoxygen/proxypay - 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. netoxygen/proxypay

ActiveLibrary[Payment Processing](/categories/payments)

netoxygen/proxypay
==================

ProxyPay library. Provides methods to compose SHA signatures and to check ProxyPay responses.

1.9.1(3y ago)02.6k↓50%MITPHPPHP &gt;=5.6.0CI failing

Since Feb 2Pushed 3y ago3 watchersCompare

[ Source](https://github.com/NetOxygen/proxypay)[ Packagist](https://packagist.org/packages/netoxygen/proxypay)[ Docs](https://github.com/NetOxygen/proxypay.git)[ RSS](/packages/netoxygen-proxypay/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (7)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/608c2867b980ac657852b3c3e3e7d79a41dd5a6e1dc73643ad874ecfdbc74fcb/68747470733a2f2f706f7365722e707567782e6f72672f6e65746f787967656e2f70726f78797061792f762f737461626c65)](https://packagist.org/packages/netoxygen/proxypay)[![Build Status](https://camo.githubusercontent.com/fef56590d78945c5fd9ae7425c69871c0c8f28e63ff49503acb440d323cf16fc/68747470733a2f2f7472617669732d63692e6f72672f4e65744f787967656e2f70726f78797061792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/NetOxygen/proxypay)[![Coverage Status](https://camo.githubusercontent.com/3f44155f7df666abee6935bcc4b85e77f1d43ca1d388a8a76793b7d3167e849c/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4e65744f787967656e2f70726f78797061792f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/NetOxygen/proxypay?branch=master)

ProxyPay library
================

[](#proxypay-library)

Provides methods to compose SHA signatures and to check [ProxyPay](https://proxypay.ch/) responses.

Full documentation can be found [here](doc/doc.md)

Requirements:
-------------

[](#requirements)

- PHP 5.5+

Installation:
-------------

[](#installation)

The library is [PSR-4 compliant](http://www.php-fig.org/psr/psr-4)and the simplest way to install it is via composer:

```
 composer require netoxygen/proxypay

```

Description
-----------

[](#description)

### Request and Responses signature

[](#request-and-responses-signature)

All the communication between your server and ProxyPay is signed using **HMAC SHA256**.

### Keys

[](#keys)

You have been provided two keys:

- **key\_in**: use it to sign your requests
- **key\_out**: use it to check ProxyPay responses signature

Usage
-----

[](#usage)

### Signing your requests to ProxyPay

[](#signing-your-requests-to-proxypay)

You have to add in your request a param named **sha\_sign** (or SHA\_SIGN). The easier way to sign your requests is to use the `PaymentRequest` class.

```
use Netoxygen\ProxyPay\PaymentRequest;

/**
  * We assume that $_POST contains all your request parameters:
  * - seller
  * - amount
  * - description
  * - success_url
  * - error_url
  * - cancel_url
  *
  * All the other parameters will be filtered.
  */
$request = new PaymentRequest($_POST, 'my_key_in');

// You can loop over all your parameters in the $request
foreach ($request->get_parameters() as $key => $value) {
    echo $key . '=' . $value;
}

// You can retrieve the SHA_SIGN
$sha_sign = $request->compose_sha_sign();
```

### Check ProxyPay responses signature

[](#check-proxypay-responses-signature)

At the end of the process, you receive a signed GET callback from ProxyPay. To ensure that the request is correctly signed, just use the `Paymentresponse` class.

```
use Netoxygen\ProxyPay\PaymentResponse;

$response = new PaymentResponse($_GET, 'my_key_out');
if ($response->is_valid()) {
    // $response signature is verified, now check the transaction status
    $params         = $response->get_parameters();
    $payment_status = $params['STATUS'];
    switch($payment_status) {
        case 'SUCCESS':
            // Complete the transaction on your side
            break;

        case 'CANCEL':
            // The transaction has been cancelled by the user
            break;

        case 'ERROR':   /* FALLTHROUGH */
        default:
            // An error occured
            break;
} else {
    // Bad request: throw away
}
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 82.1% 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.

###  Release Activity

Cadence

Every ~418 days

Recently: every ~398 days

Total

6

Last Release

1302d ago

PHP version history (2 changes)1.5.0PHP &gt;=5.5.0

1.8.1PHP &gt;=5.6.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/985843f5f4c97dfefab7ddf1d31917b0c8cbc767ec889a3e759ef9c8cd9d1280?d=identicon)[netoxygen](/maintainers/netoxygen)

---

Top Contributors

[![b-alidra](https://avatars.githubusercontent.com/u/372249?v=4)](https://github.com/b-alidra "b-alidra (23 commits)")[![gallib](https://avatars.githubusercontent.com/u/296307?v=4)](https://github.com/gallib "gallib (4 commits)")[![Dreis74](https://avatars.githubusercontent.com/u/34348123?v=4)](https://github.com/Dreis74 "Dreis74 (1 commits)")

---

Tags

paymentshaproxypay

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/netoxygen-proxypay/health.svg)

```
[![Health](https://phpackages.com/badges/netoxygen-proxypay/health.svg)](https://phpackages.com/packages/netoxygen-proxypay)
```

###  Alternatives

[paymentsuite/stripe-bundle

Stripe PaymentSuite Component

105.0k](/packages/paymentsuite-stripe-bundle)

PHPackages © 2026

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