PHPackages                             payrexx/omnipay-payrexx - 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. payrexx/omnipay-payrexx

AbandonedLibrary[Payment Processing](/categories/payments)

payrexx/omnipay-payrexx
=======================

Payrexx driver for the Omnipay payment processing library

v1.2(9mo ago)178921MITPHP

Since Jul 10Pushed 9mo agoCompare

[ Source](https://github.com/payrexx/omnipay-payrexx)[ Packagist](https://packagist.org/packages/payrexx/omnipay-payrexx)[ Docs](https://developers.payrexx.com/)[ RSS](/packages/payrexx-omnipay-payrexx/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (8)Versions (4)Used By (1)

Omnipay: Payrexx
================

[](#omnipay-payrexx)

**Payrexx driver for the Omnipay PHP payment processing library**

Payrexx is a framework agnostic, multi-gateway payment processing library for PHP. This package implements Payrexx support for Omnipay.

Maintenance Notice This repository is currently **not actively maintained**. However, community contributions such as bug reports, feature requests, and pull requests are very welcome!

Installation
------------

[](#installation)

Payrexx is installed via [Composer](http://getcomposer.org/). To install, simply require `league/omnipay` and `payrexx/omnipay` with Composer:

```
composer require league/omnipay payrexx/omnipay-payrexx

```

Basic Usage
-----------

[](#basic-usage)

The following gateways are provided by this package:

- Payrexx

For general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/omnipay)repository.

### Basic purchase and refund example

[](#basic-purchase-and-refund-example)

```
require __DIR__ . '/vendor/autoload.php';

use Omnipay\Omnipay;

$gateway = Omnipay::create('Payrexx');
$gateway->setApiKey('API_KEY'); // You find the API key in your Payrexx merchant backend
$gateway->setInstance('INSTANCE'); // That's your Payrexx instance name (INSTANCE.payrexx.com)

// Let's create a Payrexx gateway
$response = $gateway->purchase([
    'amount' => '100', // CHF 100.00
    'currency' => 'CHF',
    'psp' => 36, // Payrexx Direct
    'skipResultPage' => true,
    'successRedirectUrl' => 'https://www.merchant-website.com/success',
    'failedRedirectUrl' => 'https://www.merchant-website.com/failed',
])->send();

// A Payrexx gateway is always a redirect
if ($response->isRedirect()) {
    // Redirect URL to Payrexx gateway
    var_dump($response->getRedirectUrl());
    $response->redirect();
}

// That will be the Payrexx gateway ID
var_dump($response->getTransactionReference());

// Check if Payrexx gateway has been paid
$response = $gateway->completePurchase([
    'transactionReference' => $response->getTransactionReference(),
])->send();

// If Payrexx gateway has been paid, we will get a transaction reference (Payrexx transaction ID)
if ($response->getTransactionReference()) {
    // Optional: Fetch the corresponding transaction data => $response->getData()
    $response = $gateway->fetchTransaction([
        'transactionReference' => $response->getTransactionReference(),
    ])->send();

    // Let's refund CHF 50.00 (PSP has to support refunds => Payrexx Direct supports refunds)
    $response = $gateway->refund([
        'transactionReference' => $response->getTransactionReference(), // That's the Payrexx transaction ID as well
        'amount' => 50, // CHF 50.00
    ])->send();

    if ($response->isSuccessful()) {
        echo 'Refund was successful';
    }
}
```

Support
-------

[](#support)

If you are having general issues with Omnipay, we suggest posting on [Stack Overflow](http://stackoverflow.com/). Be sure to add the [omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) so it can be easily found.

If you want to keep up to date with release anouncements, discuss ideas for the project, or ask more detailed questions, there is also a [mailing list](https://groups.google.com/forum/#!forum/omnipay) which you can subscribe to.

If you believe you have found a bug, please report it to , or better yet, fork the library and submit a pull request.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance58

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

3

Last Release

279d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6297ff94ef6ee97def36aec9b602fbdf59f1046269817a9bb30a517324abf7c6?d=identicon)[ukramer](/maintainers/ukramer)

---

Top Contributors

[![ammannbe](https://avatars.githubusercontent.com/u/26964239?v=4)](https://github.com/ammannbe "ammannbe (3 commits)")[![mathis-hermann](https://avatars.githubusercontent.com/u/168133948?v=4)](https://github.com/mathis-hermann "mathis-hermann (3 commits)")[![michaelraess](https://avatars.githubusercontent.com/u/8957580?v=4)](https://github.com/michaelraess "michaelraess (2 commits)")

---

Tags

paymentgatewaypaymerchantomnipaypayrexx

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/payrexx-omnipay-payrexx/health.svg)

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

###  Alternatives

[lokielse/omnipay-alipay

Alipay gateway for Omnipay payment processing library

587421.0k11](/packages/lokielse-omnipay-alipay)[sudiptpa/omnipay-nabtransact

National Australia Bank (NAB) Transact driver for the Omnipay payment processing library.

1017.2k](/packages/sudiptpa-omnipay-nabtransact)[lucassmacedo/omnipay-mercadopago

MercadoPago gateway for OmniPay

154.6k](/packages/lucassmacedo-omnipay-mercadopago)

PHPackages © 2026

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