PHPackages                             adnane-ka/omnipay-tap - 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. adnane-ka/omnipay-tap

ActiveLibrary[Payment Processing](/categories/payments)

adnane-ka/omnipay-tap
=====================

Tap payments gateway for Omnipay payment processing library

1.2(1y ago)078MITPHP

Since Aug 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/adnane-ka/omnipay-tap)[ Packagist](https://packagist.org/packages/adnane-ka/omnipay-tap)[ RSS](/packages/adnane-ka-omnipay-tap/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (7)Versions (4)Used By (0)

Omnipay: Tap
============

[](#omnipay-tap)

**Tap payments gateway for Omnipay payment processing library**

[![Build Status](https://camo.githubusercontent.com/784572e3c2ed0466b9f2729bb02f50ea9199809a3ef93f10771d691c66d81a22/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636f6d2f61646e616e652d6b612f6f6d6e697061792d7461702e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.com/adnane-ka/omnipay-tap)[![Latest Stable Version](https://camo.githubusercontent.com/4cdbcf382c7194ab30740dc29eb8eb109f55560e1803b8ae88e5d20338baee50/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61646e616e652d6b612f6f6d6e697061792d7461702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/adnane-ka/omnipay-tap)[![Total Downloads](https://camo.githubusercontent.com/7f34719f5efe1f40f68032e23c01e22ac1e2bc8421c5c64f1c59e5230ad3254f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61646e616e652d6b612f6f6d6e697061792d7461702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/adnane-ka/omnipay-tap)

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

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

[](#installation)

```
composer require adnane-ka/omnipay-tap
```

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

[](#basic-usage)

The following gateways are provided by this package:

- Tap

This package ineteracts with [Tap's Charges API](https://developers.tap.company/reference/charges).

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

Example usage
-------------

[](#example-usage)

### Configuration

[](#configuration)

```
use Omnipay\Omnipay;

$gateway = Omnipay::create('Tap');

/**
 * You can use the testing API key provided by Tap.
 * No worries on switching test & live mode since Tap provides
 * Keys for both, and can distinguish between them
 *
 * @see https://developers.tap.company/reference/api-endpoint
 * @see https://developers.tap.company/reference/testing-keys
*/
$gateway->setApiToken('sk_test_XKokBfNWv6FIYuTMg5sLPjhJ');
```

### Creating a charge

[](#creating-a-charge)

```
$response = $gateway->purchase([
    'amount' => 1, // Required
    'currency' => 'KWD',  // Optional, Default is USD
    'customerName' => 'Test', // Optional, Default is Test
    'customerEmail' => 'test@test.com', // Optional, Default is Test
    'sourceId' => 'src_all',  //  Optional, Default is src_all @see https://developers.tap.company/reference/charges#the-payment-source-object
    'threeDSecure' => false, // Optional, Default is true
    'returnUrl' => 'http://your_website.com/redirect_url' // Required
])
->send();

if ($response->isRedirect()) {
    // Data is valid and you're ready to be redirected offsite
    $response->redirect();
} else {
    // An error occured
    // @see https://developers.tap.company/reference/charge-response-codes
    echo $response->getMessage();
}
```

### Retrieving a charge

[](#retrieving-a-charge)

```
$response = $gateway->completePurchase([
    // tap_id is usually injected as a URL param when returned from gateway
    'tap_id' => 'TYPE_IN_THE_TARGET_CHARGE_ID'
])->send();

if($response->isSuccessful()){
    // Payment was successful and charge was captured
    // $response->getData()
    // $response->getTransactionReference() // payment reference
}else{
    // Charge was not captured and payment failed
    // $response->getData()
}
```

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

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

3

Last Release

637d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/32fd3105946c7423fd448a5030df5993ae5ceca855de748881f30d5a17928cb3?d=identicon)[adnanekadri](/maintainers/adnanekadri)

---

Top Contributors

[![adnane-ka](https://avatars.githubusercontent.com/u/74255401?v=4)](https://github.com/adnane-ka "adnane-ka (11 commits)")

---

Tags

paymentgatewayomnipayintegrationtap

### Embed Badge

![Health badge](/badges/adnane-ka-omnipay-tap/health.svg)

```
[![Health](https://phpackages.com/badges/adnane-ka-omnipay-tap/health.svg)](https://phpackages.com/packages/adnane-ka-omnipay-tap)
```

PHPackages © 2026

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