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

ActiveLibrary[Payment Processing](/categories/payments)

dercoder/omnipay-wirecard
=========================

Wirecard gateway for Omnipay payment processing library

018PHP

Since Sep 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/dercoder/omnipay-wirecard)[ Packagist](https://packagist.org/packages/dercoder/omnipay-wirecard)[ RSS](/packages/dercoder-omnipay-wirecard/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Omnipay: Wirecard
=================

[](#omnipay-wirecard)

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

[![Build Status](https://camo.githubusercontent.com/9058ef54150826d27c33792aaf377b7cf279fd5250bad8f6922751c0d382f4ec/68747470733a2f2f7472617669732d63692e6f72672f646572636f6465722f6f6d6e697061792d77697265636172642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dercoder/omnipay-wirecard)[![Coverage Status](https://camo.githubusercontent.com/7c6256ea1d37338f97f9a4bb7b54452022afdce7fbb46f575443d9b120d86cf6/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f646572636f6465722f6f6d6e697061792d77697265636172642f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/dercoder/omnipay-wirecard?branch=master)

[![Latest Stable Version](https://camo.githubusercontent.com/88813a5338a3d75592e176538121b14000b59f0a32d12aaecd58f2244c4c954f/68747470733a2f2f706f7365722e707567782e6f72672f646572636f6465722f6f6d6e697061792d77697265636172642f762f737461626c652e706e67)](https://packagist.org/packages/dercoder/omnipay-wirecard)[![Total Downloads](https://camo.githubusercontent.com/9ce8adfca208722ef36e6f3ac92ce631902bae5139fa620f45d308cf4bc0abe7/68747470733a2f2f706f7365722e707567782e6f72672f646572636f6465722f6f6d6e697061792d77697265636172642f646f776e6c6f6164732e706e67)](https://packagist.org/packages/dercoder/omnipay-wirecard)[![Latest Unstable Version](https://camo.githubusercontent.com/62fe0d3e9019c8fb798db023e441b4c3735f4086b8678ba5325919c7a2aa6f4f/68747470733a2f2f706f7365722e707567782e6f72672f646572636f6465722f6f6d6e697061792d77697265636172642f762f756e737461626c652e706e67)](https://packagist.org/packages/dercoder/omnipay-wirecard)[![License](https://camo.githubusercontent.com/8631a499e86421ed1c0f741684ba5b88c7bac68a60091af1757b2ba4faaab2eb/68747470733a2f2f706f7365722e707567782e6f72672f646572636f6465722f6f6d6e697061792d77697265636172642f6c6963656e73652e706e67)](https://packagist.org/packages/dercoder/omnipay-wirecard)

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

> This library **only supports** Wirecard Checkout Page payment yet. You can [read more about](https://www.wirecard.at/en/solutions/products/checkout-page/) the Checkout Page solution here.

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

[](#installation)

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

```
{
    "require": {
        "dercoder/omnipay-wirecard": "~1.0"
    }
}
```

It will also install the Omnipay package if it's not available in the autoload.

Basic usage
-----------

[](#basic-usage)

The following gateways are provided by this package:

- Wirecard (Wirecard Checkout Page)

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

Firstly create the gateway:

```
$gateway = Omnipay\Omnipay::create('Wirecard');
$gateway->setCustomerId('D200001'); // this is a valid demo customer id
$gateway->setShopId('3D'); // this is optional
$gateway->setSecret('B8AKTPWBRMNBV455FG6M2DANE99WU2'); // this is also valid for developing
```

Secondly prepare the required parameters:

```
$parameters = [
    'paymentType' => 'CCARD', // optional, default SELECT
    'transactionId' => 'TX54434',
    'currency' => 'EUR',
    'description' => 'Awesome Product',
    'language' => 'EN',
    'returnUrl' => 'http://your-website.com/response?type=success',
    'cancelUrl' => 'http://your-website.com/response?type=cancel',
    'pendingUrl' => 'http://your-website.com/response?type=pending',
    'notifyUrl' => 'http://your-website.com/response?type=notify',
    'serviceUrl' => 'http://your-website.com/response?type=service',
    'imageUrl' => 'http://your-website.com/logo.png', // optional
    'amount' => '100.00'
];
```

If any required parameter is missing you will get an InvalidRequestException when you create the request:

```
$request = $gateway->purchase($parameters);
```

Send the request:

```
$response = $request->send();
```

Lastly handle the response:

```
if ($response->isRedirect()) {
    $response->redirect(); // redirect the browser to the Wirecard Checkout Page
} else {
    echo 'Error: ' . $response->getMessage();
}
```

If you would like to handle return urls from the Checkout page use this on your response page:

```
$gateway = Omnipay\Omnipay::create('Wirecard');
$gateway->setCustomerId('D200001');
$gateway->setSecret('B8AKTPWBRMNBV455FG6M2DANE99WU2');
$request = $gateway->completePurchase();
$response = $request->send();

if ($response->isSuccessful()) {
    echo 'Succesful payment!';
} else if ($response->isCancelled()) {
    echo 'Payment has been cancelled.';
} else if ($response->isPending()) {
    echo 'Your payment is in pending status.';
} else {
    echo $response->getMessage();
}
```

The `getMessage()` and `getData()` methods are available in the response object for further actions.

List of available payment types
-------------------------------

[](#list-of-available-payment-types)

Payment type is highly depended on your contract with Wirecard, but these are the currently available values:

TypeDescriptionBANCONTACT\_MISTERCASHBancontact/Mister CashC2PCLICK2PAYCCARDCredit CardCCARD-MOTOCredit Card Mail Order, Telephone OrderEKONTOeKontoSEPA-DDSEPA Direct DebitEPSEPSGIROPAYgiropayIDLiDEALINSTALLMENTInstallmentINVOICEInvoiceMAESTROMaestro SecureCodeMONETAmoneta.ruMPASSmpassPRZELEWY24Przelewy24PAYPALPayPalPBXPayboxPOLIPOLi paymentsPSCPaysafecardQUICK@QuickSKRILLDIRECTSkrill DirectSKRILLWALLETSkrill Digital WalletSOFORTUEBERWEISUNGsofort.comTRUSTLYTrustly

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 85% 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/d4045b607948c2b395b141c6c48749a42a719f11fb58956afd06ea5f246cdfa3?d=identicon)[DerCoder](/maintainers/DerCoder)

---

Top Contributors

[![dercoder](https://avatars.githubusercontent.com/u/1737685?v=4)](https://github.com/dercoder "dercoder (17 commits)")[![terdelyi](https://avatars.githubusercontent.com/u/623128?v=4)](https://github.com/terdelyi "terdelyi (3 commits)")

### Embed Badge

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

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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