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

ActiveLibrary[Payment Processing](/categories/payments)

sylapi/omnipay-paylane
======================

Paylane gateway for Omnipay payment processing library

v1.0.1(5y ago)01.7kMITPHP

Since Jun 29Pushed 5y ago2 watchersCompare

[ Source](https://github.com/sylapi/omnipay-paylane)[ Packagist](https://packagist.org/packages/sylapi/omnipay-paylane)[ Docs](https://github.com/sylapi/omnipay-paylane)[ RSS](/packages/sylapi-omnipay-paylane/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

Omnipay: Paylane
================

[](#omnipay-paylane)

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

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

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

[](#installation)

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

```
{
    "require": {
        "sylapi/paylane": "~1.0"
    }
}
```

And run composer to update your dependencies:

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

```

### Basic purchase example

[](#basic-purchase-example)

```
$gateway = Omnipay\Omnipay::create('Paylane');
$gateway->setApiKey('--API Login--');
$gateway->setApiPassword('--API Password--');
$gateway->setIp('--IP--');

$response = $gateway->purchase(
    [
        "amount" => "100.00",
        "currency" => "PLN",
        "description" => "My Payment",
        "transactionId" => "12345",
        "email" => "name@example.com",
        "name" => "Fisrtname Lastname",
        "payMethod" => "m",
        "items" => [
            [
                "name" => "Product name",
                "price" => "100.00",
                "quantity" => 1
            ]
        ],
         "card" => [
            "firstName" => "Fisrtname",
            "lastName" => "Lastname",
            "number" => "4111111111111111",
            "cvv" => "123",
            "expiryMonth" => "12",
            "expiryYear" => "2025",
            "email" => "name@example.com"
        ],
        "returnUrl" => "https://example.org/paylane-success.php",
        "cancelUrl" => "https://example.org/paylane-error.php",
        "notifyUrl" => "https://example.org/paylane-callback.php",
    ]
)->send();

// Process response
if ($response->isSuccessful()) {

    $result = $response->getData();

    if ($response->isRedirect()) {
        $response->redirect();
    }
}
else {

    // Payment failed
    echo $response->getMessage();
    echo $response->getCode();
}
```

### Basic purchase success example

[](#basic-purchase-success-example)

```
$response = $gateway->completePurchase($_POST);

if ($response->isSuccessful()) {

    $message = $response->getMessage();
    $status = $response->getStatus();
}
else {
    $error = $response->getMessage();
    $code = $response->getCode();
}
```

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

[](#basic-usage)

The following gateways are provided by this package:

- Paylane

This is a dummy gateway driver intended for testing purposes. If you provide a card number ending in an even number, the driver will return a success response. If it ends in an odd number, the driver will return a generic failure response. For example:

- 4111111111111111 - Visa - Sale successful
- 5500000000000004 - MasterCard - Sale successful
- 370000000000002 - American Express - Sale successful
- 4000000000000069 - Visa - 3-D Secure authentication is required.(sale error 700)
- 4012001036275556 - Visa - Unable to verify card enrollment (enrollment check error 720)
- 4012001038488884 - Visa - Unable to verify card enrollment (enrollment check error 720)
- 4012001036298889 - Visa - Unable to verify card enrollment (enrollment check error 720)
- 4012001038443335 - Visa - 3-D Secure Enrollment testing – card not enrolled in 3-D Secure
- 4012001036853337 - Visa - Card enrolled, verification failed (sale error 703)
- 4012001036983332 - Visa - Card enrolled, verification failed (sale error 703)
- 4012001037490006 - Visa - Card enrolled, verification failed (sale error 703)
- 4012001037461114 - Visa - Card enrolled, authentication failure (sale error 704)
- 4012001037484447 - Visa -Card enrolled, authentication not available (sale error 725)

[All errors](https://paylane.pl/devzone/wdrazanie-testy/#testowe-numery-kart) Paylane system

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

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/sylapi/omnipay-paylane/issues), or better yet, fork the library and submit a pull request.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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

2140d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8284e979dcbb9e6ff013f3e04f2c3f0a3de8f62fad97e12383155779b0adee23?d=identicon)[sylapi](/maintainers/sylapi)

---

Top Contributors

[![azapotoczny2000](https://avatars.githubusercontent.com/u/59831278?v=4)](https://github.com/azapotoczny2000 "azapotoczny2000 (6 commits)")[![webard](https://avatars.githubusercontent.com/u/855788?v=4)](https://github.com/webard "webard (2 commits)")

---

Tags

paymentgatewaypaymerchantomnipaypurchasepaylane

### Embed Badge

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

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

###  Alternatives

[lokielse/omnipay-alipay

Alipay gateway for Omnipay payment processing library

587421.0k11](/packages/lokielse-omnipay-alipay)

PHPackages © 2026

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