PHPackages                             codifyllc/solid-trust-pay-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. [API Development](/categories/api)
4. /
5. codifyllc/solid-trust-pay-php

ActiveLibrary[API Development](/categories/api)

codifyllc/solid-trust-pay-php
=============================

A starter package for interacting with the Solid Trust Pay API.

1.0(9y ago)020PHPPHP &gt;=5.3.0

Since Sep 24Pushed 9y ago1 watchersCompare

[ Source](https://github.com/CodifyLLC/solid-trust-pay-php)[ Packagist](https://packagist.org/packages/codifyllc/solid-trust-pay-php)[ RSS](/packages/codifyllc-solid-trust-pay-php/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Solid Trust Pay
===============

[](#solid-trust-pay)

StpButton
---------

[](#stpbutton)

This class is used to generate a payment button

```
$stpButton = new StpButton();
$stpButton->setMerchantAccount('YourMerchantValue');
$stpButton->setItemId('YourMerchantValue');
$stpButton->setSciName('YourMerchantValue');
$stpButton->setLogo('YourMerchantValue');
$stpButton->setUser1('user1 value');
$stpButton->setUser2('user2 value');
$stpButton->setUser3('user3 value');
// setUser* (up to 10)

$stpButton->setReturnUrl('http://yourReturnUrl.com/thankyou');
$stpButton->setCancelUrl('http://yourReturnUrl.com/cancel');
$stpButton->setNotifyUrl('http://yourReturnUrl.com/yourCallbackScript.php');
$stpButton->setAmount('25.99');

// Enable Test Mode
$stpButton->setTestMode('On');
```

StpCallback
-----------

[](#stpcallback)

This class is used to fetch $\_POST. This should be called from your notify\_url value that you set in your StpButton class

```
$stpCallback = new StpCallbck();

$status = $stpCallback->getStatus();
$user1 = $stpCallback->getUser1();
$user2 = $stpCallback->getUser2();

switch($status) {
    case 'COMPLETE':
        // This is successful!

        $stpTransId = $stpCallback->getTrId();
        break;

    default:
        // Something went wrong...
        break;
}
```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3560d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4121585?v=4)[Luke Hoezee](/maintainers/lhoezee)[@lhoezee](https://github.com/lhoezee)

---

Top Contributors

[![lhoezee](https://avatars.githubusercontent.com/u/4121585?v=4)](https://github.com/lhoezee "lhoezee (2 commits)")

### Embed Badge

![Health badge](/badges/codifyllc-solid-trust-pay-php/health.svg)

```
[![Health](https://phpackages.com/badges/codifyllc-solid-trust-pay-php/health.svg)](https://phpackages.com/packages/codifyllc-solid-trust-pay-php)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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