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

ActiveLibrary

sauladam/omnipay-barzahlen
==========================

Barzahlen driver for the Omnipay payment processing library

021PHP

Since Jun 3Pushed 10y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Omnipay: Barzahlen
==================

[](#omnipay-barzahlen)

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

[![Build Status](https://camo.githubusercontent.com/68210513e11efd249a731393070c12aa6eb87d3a7a13959c8bfc6fb12ca01948/68747470733a2f2f7472617669732d63692e6f72672f7361756c6164616d2f6f6d6e697061792d6261727a61686c656e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sauladam/omnipay-barzahlen)[![Total Downloads](https://camo.githubusercontent.com/32c72e815122092669c12f71fad0b5ffe9e76b5848ec0828bac73cf8ef05e06c/68747470733a2f2f706f7365722e707567782e6f72672f7361756c6164616d2f6f6d6e697061792d6261727a61686c656e2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/sauladam/omnipay-barzahlen)

This is non-official Omnipay-driver for the German payment gateway provider [Barzahlen](https://www.barzahlen.de/). In order to use it the Omnipay-Framework is required.

[Omnipay](https://github.com/omnipay/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements barzahlen support for Omnipay.

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

[](#installation)

This package is installed via [Composer](http://getcomposer.org/). To install, simply add it to your `composer.json` file:

```
{
    "require": {
        "sauladam/omnipay-barzahlen": "dev-master"
    }
}
```

And run composer to update your dependencies:

```
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update

```

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

[](#basic-usage)

The following gateways are provided by this package:

- Barzahlen

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

Basically it's pretty straight forward:

### Purchase (create a transaction):

[](#purchase-create-a-transaction)

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

use Omnipay\Omnipay;

$gateway = Omnipay::create('Barzahlen');

// Testmode is on by default until you explicitly switch it off.
// You can either do this here on the gateway level or for each request.
$gateway->setTestMode(false);
$gateway->setShopId('yourShopid');
$gateway->setPaymentKey('yourPaymentKey');

$request = $gateway->purchase(
	array(
		'currency' => 'EUR',
		// Amounts higher than 999.99 will not be accepted
		'amount' => '111.59',
		// The order_id is not mandatory, you can set
		// it later in another request if you want.
		'orderId' => '123456',
		'customerDetails' => array(
			'email' => 'test@test.com',
			'street_nr' => 'Testsreet 10a',
			'zipcode' => '12345',
			'city' => 'Test City',
			'country' => 'DE',
		),
		// If you want to pass in any custom vars (not mandatory),
        // make sure you pass them in the right order
		'customVars' => array(
			'some var 0',
			'some var 1',
		),
	)
);

$response = $request->send();

if ($response->isSuccessful() && $response->isVerified())
{
	$transactionId = $response->getTransactionReference();
}
```

All the other Requests work accordingly:

### Update (update the order-id)

[](#update-update-the-order-id)

```
$request = $gateway->update(array(
	'transactionId' => $transactionId,
	'orderId' => 'n3w0rd3r1d',
));
```

### Resend Email (resend the email to the customer)

[](#resend-email-resend-the-email-to-the-customer)

```
$request = $gateway->resendEmail(array(
	'transactionId' => $transactionId,
	'language' => 'de', // not mandatory
));
```

### Void (cancel the transaction so the customer will stop receiving payment reminders)

[](#void-cancel-the-transaction-so-the-customer-will-stop-receiving-payment-reminders)

```
$request = $gateway->void(array(
	'transactionId' => $transactionId,
	'language' => 'de', // not mandatory
));
```

### Refund (give them their money back...)

[](#refund-give-them-their-money-back)

```
$request = $gateway->refund(array(
	'transactionId' => $transactionId,
	'amount' => '20.00',
	'currency' => 'EUR',
	'language' => 'de', // not mandatory
));
```

You can find a really great API documentation at

Please note that this is **not the official** API implementation! You can find officially supportet Barzahlen API libraries at

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 using the [GitHub issue tracker](https://github.com/sauladam/omnipay-barzahlen/issues), or better yet, fork the library and submit a pull request.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/84e5da40b6909416a926549fec2ba68020e6cc4a2694a186861d7782b5c332f3?d=identicon)[sauladam](/maintainers/sauladam)

---

Top Contributors

[![sauladam](https://avatars.githubusercontent.com/u/5918276?v=4)](https://github.com/sauladam "sauladam (21 commits)")

### Embed Badge

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

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

PHPackages © 2026

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