PHPackages                             genome/merchant - 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. genome/merchant

ActiveLibrary[API Development](/categories/api)

genome/merchant
===============

Genome merchant client libraries

0.0.4(5mo ago)00MITPHPCI passing

Since Oct 24Pushed 5mo agoCompare

[ Source](https://github.com/genome-eu/php-merchant-client)[ Packagist](https://packagist.org/packages/genome/merchant)[ RSS](/packages/genome-merchant/feed)WikiDiscussions main Synced 1mo ago

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

Genome Merchant Client Library
==============================

[](#genome-merchant-client-library)

[![PHP](https://camo.githubusercontent.com/bf32b6e6f3b50fc8c5883a8581b79c21099d4541c14aa9460803c4af7575c6a7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e322b2d626c7565)](https://camo.githubusercontent.com/bf32b6e6f3b50fc8c5883a8581b79c21099d4541c14aa9460803c4af7575c6a7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e322b2d626c7565)[![CI](https://github.com/genome-eu/php-merchant-client/actions/workflows/tests.yml/badge.svg)](https://github.com/genome-eu/php-merchant-client/actions/workflows/tests.yml/badge.svg)

Genome merchant account client library.

Easy start
----------

[](#easy-start)

Initialize merchant account manager using merchant account identifier and secret.

```
use Genome\Merchant\MerchantAccountManager;

$merchantAccountLogin = "foo";  // Your merchant account login
$merchantAccountSecret = "baz"; // Your merchant account password

$accountManager = new MerchantAccountManager($merchantAccountLogin, $merchantAccountSecret);
```

Then obtain hosted payment page manager from merchant account manager by providing hosted payment page api key and secret (they differ from merchant account ones).

```
$hppApiKey = 'xxx';
$hppApiSecret = 'yyy';

$hppManager = $accountManager->getHostedPaymentPageManager($hppApiKey, $hppApiSecret)
```

Verify hosted payment page callback signature

```
try {
    $hppManager->assertCallbackSignature(getallheaders(), file_get_contents('php://input'));
} catch (\Exception e) {
    // Signature assertion failed
}
```

Or initialize new payment redirect using `HostedPayment`:

```
$payment = new HostedPayment(
    "uniqueOrderId",
    "userId",
    "mcc",
    "eur",
    9.99
);

$redirectUrl = $hppManager->generateInitializationRedirectUrl($payment);
```

The `HostedPayment` is a mutable object containing payment data, it provides setters for additional parameters like email, phone, etc.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance70

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

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

Total

3

Last Release

174d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7ee41857f68d19ede31cd3f9e79f310fda76e2f78fc8c1e1966c1218229740e7?d=identicon)[genome-eu](/maintainers/genome-eu)

---

Top Contributors

[![gotterdemarung](https://avatars.githubusercontent.com/u/2094324?v=4)](https://github.com/gotterdemarung "gotterdemarung (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/genome-merchant/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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