PHPackages                             geekk/payssion-payments-php - 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. geekk/payssion-payments-php

ActiveLibrary

geekk/payssion-payments-php
===========================

PHP classes for Payssion payments

v1.0.5(2y ago)012.4k↓42.9%MITPHPPHP &gt;=8.1

Since Jun 15Pushed 2y ago2 watchersCompare

[ Source](https://github.com/geekk-net/payssion-payments-php)[ Packagist](https://packagist.org/packages/geekk/payssion-payments-php)[ Docs](https://github.com/geekk-net/payssion-payments-php)[ RSS](/packages/geekk-payssion-payments-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

Payssion payments
=================

[](#payssion-payments)

Prerequisites
-------------

[](#prerequisites)

- PHP 8.1 or above (from enums)
- curl, guzzlehttp/guzzle, json &amp; openssl extensions must be enabled

Usage
-----

[](#usage)

### Create an order

[](#create-an-order)

```
$payssion = new PayssionApiClient('your api key', 'your secretkey', !$testMode);

try {
    $params = [
        'amount' => '10.95',
        'currency' => 'USD',
        'pm_id' => PayssionPaymentMethodEnum::payssion_test->name,
        'description' => 'Some goods',
        'order_id' => 'your order id',
        'return_url' => 'https://your-return-url.net/...'
        'payer_email' => 'your-user@mail.net'
    ];

    $response = $payssion->create($params);

    $apiResponse = new PayssionApiResponse($response);

} catch (Exception $e) {
    // log error
    echo sprintf("Error: %s", $e->getMessage());

    return;
}

if (! $apiResponse->isSuccess()) {
    // log error
    echo sprintf("Ошибка: %s", $apiResponse->getResultCode());

    return;
}

// log redirect URL (to payment form)
echo $apiResponse->getRedirectUrl();
// Code for redirecting user to payment form
```

### Handle payment notification

[](#handle-payment-notification)

```
$data = $_POST;

$webhookService = new PayssionWebhookService($data, 'your api key', 'your secretkey');

if(! $webhookService->hasCorrectSignature()) {
    echo 'Incorrect signature';

    return;
}

$paymentId = $webhookService->getPaymentId();
$invoiceId = $webhookService->getOrderId();
$status = $webhookService->getState();

if (in_array($status, [
    PayssionPaymentStatusEnum::cancelled,
    PayssionPaymentStatusEnum::failed,
    PayssionPaymentStatusEnum::expired,
    PayssionPaymentStatusEnum::error,
    ])) {

    echo 'failded payment';
    // Core for failed payment
    return;
}

if (in_array($status, [
    PayssionPaymentStatusEnum::refunded,
    PayssionPaymentStatusEnum::chargeback,
    ])) {

    echo 'refunded payment';
    // Code for refunded payment
    return;
}

if ($status == PayssionPaymentStatusEnum::completed) {
    echo 'completed payment';
    // Code for completed payment
    return;
}
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

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

Total

5

Last Release

1036d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f5d036db1914a24e650265fabd3566b0218090e02a210bf7fa5dc0c1023463c5?d=identicon)[geekk-net](/maintainers/geekk-net)

---

Tags

paymentspayssion

### Embed Badge

![Health badge](/badges/geekk-payssion-payments-php/health.svg)

```
[![Health](https://phpackages.com/badges/geekk-payssion-payments-php/health.svg)](https://phpackages.com/packages/geekk-payssion-payments-php)
```

###  Alternatives

[unicodeveloper/laravel-paystack

A Laravel Package for Paystack

650975.6k11](/packages/unicodeveloper-laravel-paystack)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

768.0M9](/packages/chargebee-chargebee-php)[gopay/payments-sdk-php

GoPay's PHP SDK for Payments REST API

841.6M14](/packages/gopay-payments-sdk-php)[transbank/transbank-sdk

Transbank SDK

62626.4k12](/packages/transbank-transbank-sdk)[mnastalski/przelewy24-php

Przelewy24 PHP library

52101.2k2](/packages/mnastalski-przelewy24-php)[invoiced/invoiced

Invoiced PHP Library

14117.1k](/packages/invoiced-invoiced)

PHPackages © 2026

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