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

ActiveLibrary

geekk/payselection-payments-php
===============================

Payselection payments

1.0.2(2y ago)011.1k↓42.9%[1 PRs](https://github.com/geekk-net/payselection-payments-php/pulls)mitPHP

Since Sep 5Pushed 2y ago1 watchersCompare

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

READMEChangelog (9)Dependencies (4)Versions (12)Used By (0)

Payselection payments
=====================

[](#payselection-payments)

[![Action Status](https://github.com/geekk-net/payselection-payments-php/actions/workflows/ci.yml/badge.svg)](https://github.com/geekk-net/payselection-payments-php/actions)

Redirect to payment
-------------------

[](#redirect-to-payment)

```
use Geekk\PayselectionPaymentsPhp\Paylink\PaymentRequestData;
use Geekk\PayselectionPaymentsPhp\Paylink\PaymentRequestExtraData;
use Geekk\PayselectionPaymentsPhp\PayselectionApi;
use Geekk\PayselectionPaymentsPhp\SignatureCreator;
use GuzzleHttp\Client;

//...

$paymentRequest = new PaymentRequestData($orderId, $amount, $currency, $description);
$extraData = new PaymentRequestExtraData();
$extraData->setWebhookUrl('https://...');
$extraData->setSuccessUrl('https://...');
$extraData->setDeclineUrl('https://...');
$paymentRequest->setExtraData($extraData);

$paylinkCreator = new PayselectionApi(new Client(), $siteId, new SignatureCreator($secretKey));
$paylinkResult = $paylinkCreator->createPaylink($paymentRequest);

if ($paylinkResult->success()) {
    header('Location: ' . $paylinkResult->getPaymentUrl());
    exit;
}

echo $paylinkResult->getErrorCode().' '.$paylinkResult->getErrorDescription()
```

Add receipt for to payment
--------------------------

[](#add-receipt-for-to-payment)

```
use Geekk\PayselectionPaymentsPhp\Paylink\ReceiptData;
use Geekk\PayselectionPaymentsPhp\Paylink\ReceiptData\ClientData;
use Geekk\PayselectionPaymentsPhp\Paylink\ReceiptData\CompanyData;
use Geekk\PayselectionPaymentsPhp\Paylink\ReceiptData\ItemData;

// ...

$company = new CompanyData('YOUR_INN', 'https://shop-site.net');
$client = new ClientData('user@mail.com');
$items = [new ItemData(7.95, 'Some digital goods')];
$receipt = new ReceiptData($company, $client, $items);

$paylinkResult = $paylinkCreator->createPaylink($paymentRequest, $receipt);
```

Process a webhook
-----------------

[](#process-a-webhook)

```
use Geekk\PayselectionPaymentsPhp\WebhookHandler;

// ...

$data = file_get_contents("php://input");
$headers = getallheaders();
$requestUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']
    === 'on' ? "https" : "http") .
    "://" . $_SERVER['HTTP_HOST'] .
    $_SERVER['REQUEST_URI'];

$webhook = new WebhookHandler(new SignatureCreator($secretKey));

$webhook->handle($requestUrl, $headers, $data);

if ( ! $webhook->hasCorrectSignature()) {
    log("Signature error");
    return;
}

$eventType = $webhook->getEventName();

if (! in_array($eventType, $webhook->getOneStepEventTypes())) {
    log("Incorrect event type");
    return;
}

if ($eventType == $webhook::EVENT_PAYMENT) {
    log(sprintf("Successful payment #%s: %s %s",
        $webhook->getOrderId(),
        $webhook->getAmount(),
        $webhook->getCurrency()
    ));
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~10 days

Recently: every ~20 days

Total

9

Last Release

902d ago

Major Versions

0.7.2 → 1.0.02023-11-22

### Community

Maintainers

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

---

Top Contributors

[![geekk-net](https://avatars.githubusercontent.com/u/74247579?v=4)](https://github.com/geekk-net "geekk-net (3 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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