This package is abandoned and no longer maintained. No replacement package was suggested.

Przelewy24 driver for the Omnipay payment processing library

2.0 2018-05-25 12:21 UTC

This package is not auto-updated.

Last update: 2019-11-17 15:17:14 UTC


Przelewy24 gateway for the Omnipay PHP payment processing library

Software License Build Status

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

For more information about the Przelewy24 API, take a look at the manual


This gateway can be installed with Composer:

$ composer require ticketswap/omnipay-przelewy24


The following gateways are provided by this package:

  • Przelewy24


require_once  __DIR__ . '/vendor/autoload.php';

use Omnipay\Omnipay;

/** @var \Omnipay\Przelewy24\Gateway $gateway */
$gateway = Omnipay::create('Przelewy24');

    'merchantId' => 'YOUR MERCHANT ID HERE',
    'posId'      => 'YOUR POS ID HERE',
    'crc'        => 'YOUR CRC KEY HERE',
    'testMode'   => true,

$params = array(
    'sessionId' => 2327398739,
    'amount' => 12.34,
    'currency' => 'PLN',
    'description' => 'Payment test',
    'returnUrl' => '',
    'notifyUrl' => '',
    'card' => array(
        'email' => '',
        'name' => 'My name',
        'country' => 'NL',

$response = $gateway->purchase($params)->send();

if ($response->isSuccessful()) {
} else {
    echo 'Failed';

Optionally you can specify the payment channels allowed adding the 'channel' parameter in the Gateway initialization call.

    'channel' => Gateway::P24_CHANNEL_CC,

For a list of all the supported values for 'Channel' you can read the przelewy24 documentation


If you are having general issues with Omnipay, we suggest posting on Stack Overflow. Be sure to add the omnipay tag 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 which you can subscribe to.

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


$ composer test


If you discover any security related issues, please email instead of using the issue tracker.



The MIT License (MIT). Please see License File for more information.