PHPackages                             professionalweb/paymentdrivers - 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. professionalweb/paymentdrivers

AbandonedArchivedLibrary[Payment Processing](/categories/payments)

professionalweb/paymentdrivers
==============================

Drivers for payment systems

0.4(10y ago)261MITPHPPHP &gt;=5.4.0

Since May 18Pushed 10y ago1 watchersCompare

[ Source](https://github.com/SergioMadness/paymentdrivers)[ Packagist](https://packagist.org/packages/professionalweb/paymentdrivers)[ Docs](http://web-development.pw/)[ RSS](/packages/professionalweb-paymentdrivers/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (5)Versions (3)Used By (0)

Payment systems' drivers
========================

[](#payment-systems-drivers)

[![Latest Stable Version](https://camo.githubusercontent.com/5feac88f42f190104f8936b1d603ea95645900dfac4eb8a2bfc50e2fdcf849ae/68747470733a2f2f706f7365722e707567782e6f72672f70726f66657373696f6e616c7765622f7061796d656e74647269766572732f762f737461626c65)](https://packagist.org/packages/professionalweb/paymentdrivers)[![Build Status](https://camo.githubusercontent.com/72e3427821a8d143560fb4aac603b4e3c8f5d39732bac663345ea9cc541c1457/68747470733a2f2f7472617669732d63692e6f72672f53657267696f4d61646e6573732f7061796d656e74647269766572732e7376673f6272616e63683d646576)](https://travis-ci.org/SergioMadness/paymentdrivers)[![Code Climate](https://camo.githubusercontent.com/10fc944e49f584998f2f1fee8dc76256baeb1dcd42eb139768df747069a2321b/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f53657267696f4d61646e6573732f7061796d656e74647269766572732f6261646765732f6770612e737667)](https://codeclimate.com/github/SergioMadness/paymentdrivers)[![Coverage Status](https://camo.githubusercontent.com/51259fd3fd7b2bc3cfe7fad58834c4f4c2dd282fde4896c888bf93f885d960b3/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f53657267696f4d61646e6573732f7061796d656e74647269766572732f62616467652e7376673f6272616e63683d646576)](https://coveralls.io/github/SergioMadness/paymentdrivers?branch=dev)[![Dependency Status](https://camo.githubusercontent.com/bebe1b3047f6c07bc943c99a0e272c61364cd33dfcfe654ce4774a4a348aa1ae/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3537336335633030636538643065303034313330626436322f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/573c5c00ce8d0e004130bd62)[![License](https://camo.githubusercontent.com/b444463cc00306e555d3734b696b4a9d7140b73245d511291baf6bc7aca5d7a4/68747470733a2f2f706f7365722e707567782e6f72672f70726f66657373696f6e616c7765622f7061796d656e74647269766572732f6c6963656e7365)](https://packagist.org/packages/professionalweb/paymentdrivers)[![Latest Unstable Version](https://camo.githubusercontent.com/6273b1a2562e719e51b5d77a1921bed7c66a4ca6b86cbe7df39547106be9f265/68747470733a2f2f706f7365722e707567782e6f72672f70726f66657373696f6e616c7765622f7061796d656e74647269766572732f762f756e737461626c65)](https://packagist.org/packages/professionalweb/paymentdrivers)

Requirements
------------

[](#requirements)

- PHP 5.4+

Dependencies
------------

[](#dependencies)

- [robrichards/xmlseclibs](https://github.com/robrichards/xmlseclibs)
- [professionalweb/helpers](https://github.com/SergioMadness/pwf-helpers)

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

[](#installation)

Module is available through [composer](https://getcomposer.org/)

composer require professionalweb/paymentdrivers "dev-master"

Alternatively you can add the following to the `require` section in your `composer.json` manually:

```
"professionalweb/paymentdrivers": "dev-master"
```

Run `composer update` afterwards.

Payment systems
---------------

[](#payment-systems)

- [Cyberplat](https://www.cyberplat.com/)
- [Rapida](https://rapida.ru/)
- [FSG](http://www.kvartplata.ru/Pages/default.aspx)
- [A3](https://www.a-3.ru/)

Examples
--------

[](#examples)

```
class PaymentDriverFabric
{
    const DRIVER_FSG       = 'fsg';
    const DRIVER_CYBERPLAT = 'cyberplat';
    const DRIVER_RAPIDA    = 'rapida';
    const DRIVER_A3        = 'a3';

    /**
     * Get driver by name
     *
     * @param string $driverName
     * @return \professionalweb\paymentdrivers\interfaces\PaymentSystem
     */
    public static function getDriver($driverName)
    {
        $result = null;
        switch ($driverName) {
            case self::DRIVER_FSG:
                $result = self::getFsgDriver();
                break;
            case self::DRIVER_CYBERPLAT:
                $result = self::getCyberplatDriver();
                break;
            case self::DRIVER_RAPIDA:
                $result = self::getRapidaDriver();
                break;
            case self::DRIVER_A3:
                $result = self::getA3Driver();
                break;
        }
        return $result;
    }

    /**
     * Get FSG payment driver
     *
     * @return \professionalweb\paymentdrivers\interfaces\PaymentSystem
     */
    public static function getFsgDriver()
    {
        $driver = new \professionalweb\paymentdrivers\FSG\FSG;
        return $driver
                ->setCertificate(FDG_CERT_PATH)
                ->setHost(FSG_HOST)
                ->setPort(FSG_PORT)
                ->setTerminalName(FSG_TERMINAL_NAME)
                ->setIsTLS(FSG_IS_TLS);
    }

    /**
     * Get cyberplat payment driver
     *
     * @return \professionalweb\paymentdrivers\interfaces\PaymentSystem
     */
    public static function getCyberplatDriver()
    {
        $driver = new \professionalweb\paymentdrivers\cyberplat\Cyberplat();
        return $driver
                ->setAP(CYBERPLAT_AP)
                ->setOP(CYBERPLAT_OP)
                ->setSD(CYBERPLAT_SD)
                ->setTermId(CYBERPLAT_TERM_ID)
                ->setSerial(CYBERPLAT_SERIAL)
                ->setSecretKey(file_get_contents(CYBERPLAT_PATH_TO_SECRET_KEY))
                ->setPublicKey(file_get_contents(CYBERPLAT_PATH_TO_PUBLIC_KEY))
                ->setSecretKeyPassword(CYBERPLAT_SSL_KEY_PASSWORD)
                ->setNoRoute(CYBERPLAT_NO_ROUTE)
                ->setPayTool(CYBERPLAT_PAY_TOOL)
                ->setAcceptedKeys(CYBERPLAT_ACCEPT_KEYS);
    }

    /**
     * Get rapida payment driver
     *
     * @return \professionalweb\paymentdrivers\interfaces\PaymentSystem
     */
    public static function getRapidaDriver()
    {
        $driver = new \professionalweb\paymentdrivers\rapida\Rapida();
        return $driver
                ->setUrl(RAPIDA_URL)
                ->setCAPath(RAPIDA_PATH_TO_CA)
                ->setSSLCertPath(RAPIDA_PATH_TO_SSL_CERT)
                ->setSSLKeyPath(RAPIDA_PATH_TO_SSL_KEY)
                ->setSSLKeyPassword(RAPIDA_SSL_KEY_PASSWORD)
                ->setTermType(RAPIDA_TERM_TYPE)
                ->setTermId(RAPIDA_TERM_ID);
    }

    /**
     * Get A3 payment driver
     *
     * @return \professionalweb\paymentdrivers\interfaces\PaymentSystem
     */
    public static function getA3Driver()
    {
        $driver = new \professionalweb\paymentdrivers\a3\A3();
        return $driver
                ->setUrl(A3_WSDL_URL)
                ->setSSLCertificatePath(A3_PATH_TO_SSL_CERT)
                ->setSSLCertificatePassword(A3_SSL_CERT_PASSWORD)
                ->setCertificatePath(A3_PATH_TO_SIGN_CERT)
                ->setCertificatePassword(A3_SIGN_CERT_PASSWORD);
    }
}
```

The MIT License (MIT)
---------------------

[](#the-mit-license-mit)

Copyright (c) 2016 Sergey Zinchenko, [Professional web](http://web-development.pw)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

3696d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1365ec6405d0ae656f92345bbe388afc34a12a19c3ab0c9ff909b5d4ea3d83a0?d=identicon)[SergioMadness](/maintainers/SergioMadness)

---

Tags

composerprofessional webpwfweb-development.pwpayment systemrapidacyberplatfsgA3

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/professionalweb-paymentdrivers/health.svg)

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

###  Alternatives

[professionalweb/payment-laravel

Payment drivers for laravel

159.5k3](/packages/professionalweb-payment-laravel)[ollywarren/laravel-go-cardless

A Laravel Wrapper for the Go Cardless PHP Client Library

109.6k](/packages/ollywarren-laravel-go-cardless)

PHPackages © 2026

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