PHPackages                             ampeco/omnipay-bankart - 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. ampeco/omnipay-bankart

ActiveProject[Payment Processing](/categories/payments)

ampeco/omnipay-bankart
======================

Bankart Omnipay Plugin

1.0.11(7mo ago)247.9k↓91.2%1MITPHPPHP &gt;=7.3CI failing

Since May 21Pushed 7mo ago2 watchersCompare

[ Source](https://github.com/ampeco/omnipay-bankart)[ Packagist](https://packagist.org/packages/ampeco/omnipay-bankart)[ RSS](/packages/ampeco-omnipay-bankart/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (5)Dependencies (4)Versions (13)Used By (0)

omnipay-bankart
===============

[](#omnipay-bankart)

[Omnipay](https://omnipay.thephpleague.com) plugin for [bankart](https://gateway.bankart.si/documentation/gateway)

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

[](#installation)

```
composer require ampeco/omnipay-bankart
```

Getting started
---------------

[](#getting-started)

Create the gateway

```
$gateway = Omnipay::create('\Ampeco\OmnipayBankart\Gateway');
$gateway->initialize([
    'username'           => 'Your API username',
    'password'           => 'Your API password',
    'apiKey'             => 'Your API key',
    'sharedSecret'       => 'Your API shared secret',
]);
```

Add a new credit card

```
$response = $gateway->createCard([
        'transaction_id' => uniqid('', true),
        'description' => 'Description',
        'return_url' => 'https://your-return-url',
        'notify_url' => 'https://your-notify-url',
        'customer' => [
            'first_name' => 'John',
            'last_name' => 'Doe',
            'identification' => 1,
            'email' => 'john@example.com',
            'billingAddress1' => 'None',
            'billingCity' => 'Unknown',
            'billingCountry' => 'NA',
            'billingPostcode' => '0000',
        ]
])->send();

if (!$response->isSuccessful()) {
    abort(422, $response->getMessage());
}

// You must redirect the client to:
echo $response->getRedirectUrl();
echo $response->getTransactionReference(); // The transaction ID assigned by the bank
```

Check if the client completed the card registration

```
$transactionReference = '1234567890'; // Fetched from above - $response->getTransactionReference()

$result = $gateway->fetchTransaction([
    'transactionReference' => $transactionReference,
])->send();

if (!$result->isSuccessful()){
    abort(422, $result->getMessage());
}
```

Charge the saved credit card reference

```
$transactionReference = '1234567890'; // saved from above - $transactionReference;
$response = $gateway->purchase([
    'cardReference'     => $transactionReference,
    'amount'            => 3,
    'currency'          => 'EUR',
    'description'       => 'Purchase #1234',
])->send();

if ($response->isSuccessful()) {
    echo $response->getTransactionReference();

} else {
    abort(422, $response->getMessage());
}
```

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance63

Regular maintenance activity

Popularity26

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

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

Every ~200 days

Recently: every ~92 days

Total

11

Last Release

228d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f578cc63ee0c3e321c00f5c3b43b862f0864a9119e4353d02188548d8dd5435d?d=identicon)[sash](/maintainers/sash)

---

Top Contributors

[![dmtar](https://avatars.githubusercontent.com/u/37380766?v=4)](https://github.com/dmtar "dmtar (6 commits)")[![DianaVrachevaAmpeco](https://avatars.githubusercontent.com/u/169815491?v=4)](https://github.com/DianaVrachevaAmpeco "DianaVrachevaAmpeco (4 commits)")[![doncho-toromanov](https://avatars.githubusercontent.com/u/164179768?v=4)](https://github.com/doncho-toromanov "doncho-toromanov (1 commits)")[![sash](https://avatars.githubusercontent.com/u/45210?v=4)](https://github.com/sash "sash (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ampeco-omnipay-bankart/health.svg)

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

###  Alternatives

[symfony/http-kernel

Provides a structured process for converting a Request into a Response

8.1k869.4M8.8k](/packages/symfony-http-kernel)[symfony/cache

Provides extended PSR-6, PSR-16 (and tags) implementations

4.2k373.5M3.3k](/packages/symfony-cache)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[recurly/recurly-client

The PHP client library for the Recurly API

1736.6M9](/packages/recurly-recurly-client)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

564576.7k53](/packages/ecotone-ecotone)

PHPackages © 2026

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