PHPackages                             shabeer-mdy/laravel-tap-payments - 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. shabeer-mdy/laravel-tap-payments

ActiveLibrary[Payment Processing](/categories/payments)

shabeer-mdy/laravel-tap-payments
================================

Tap Payment REST API package for Laravel

01.1kPHP

Since Dec 11Pushed 2y agoCompare

[ Source](https://github.com/shabeer-mdy/laravel-tap-payments)[ Packagist](https://packagist.org/packages/shabeer-mdy/laravel-tap-payments)[ RSS](/packages/shabeer-mdy-laravel-tap-payments/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

About
=====

[](#about)

Integration library with

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

[](#installation)

```
composer require "spacemudd/laravel-tap-payments"

```

For older versions of Laravel (&lt;5.5)
---------------------------------------

[](#for-older-versions-of-laravel-55)

Update your `/config/app.php` with:

```
'providers' => [
    ...
	\Tap\TapPayment\TapPaymentServiceProvider::class
]

```

```
'aliases' => [
    ...
	'TapPayment' => \Tap\TapPayment\Facade\TapPayment::class
]

```

Publishing
----------

[](#publishing)

```
php artisan vendor:publish --provider="Tap\TapPayment\TapPaymentServiceProvider"

```

Config
======

[](#config)

Update `/config/tap-payment.php` with your info.

Add the following to your .env file:

```
TAP_PAYMENT_API_KEY=your_api_key

```

Current version Functions
-------------------------

[](#current-version-functions)

- `TapPayment::createCharge()` - Creating an ApiInvoice
- `TapPayment::findCharge($id)` - Finding an ApiInvoice by ID

Usage example
-------------

[](#usage-example)

### Creating a charge

[](#creating-a-charge)

```
use Tap\TapPayment\Facade\TapPayment;

public function pay()
{
	try {
		$payment = TapPayment::createCharge();
		$payment->setCustomerName("John Doe");
		$payment->setCustomerPhone("965", "123456789");
		$payment->setDescription("Some description");
		$payment->setAmount(123);
		$payment->setCurrency("KWD");
		$payment->setSource("src_kw.knet");
		$payment->setRedirectUrl("https://example.com");
		$payment->setPostUrl("https://example.com"); // if you are using post request to handle payment updates
		$payment->setMetaData(['package' => json_encode($package)]); // if you want to send metadata
		$invoice = $payment->pay();
	} catch( \Exception $exception ) {
		// your handling of request failure
	}

    $payment->isSuccess(); // check if TapPayment has successfully handled request.
}
```

### Getting an invoice

[](#getting-an-invoice)

```
public function check($id)
{
	try {
		 $invoice = TapPayment::findCharge($id);
	 } catch(\Exception $exception) {
		// your handling of request failure
	}

	$invoice->checkHash($request->header('Hashstring')); // check hashstring to make sure that request comes from Tap
	$invoice->isSuccess(); // check if invoice is paid
	$invoice->isInitiated(); // check if invoice is unpaid yet
}
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c657e8d2f647403f5c9e597fda79bba00f2bd620eb54a0a29328759803fcb3a?d=identicon)[shabeer-mdy](/maintainers/shabeer-mdy)

---

Top Contributors

[![vanandmkrtchyan](https://avatars.githubusercontent.com/u/10657871?v=4)](https://github.com/vanandmkrtchyan "vanandmkrtchyan (13 commits)")[![shabeer-mdy](https://avatars.githubusercontent.com/u/26842535?v=4)](https://github.com/shabeer-mdy "shabeer-mdy (4 commits)")

### Embed Badge

![Health badge](/badges/shabeer-mdy-laravel-tap-payments/health.svg)

```
[![Health](https://phpackages.com/badges/shabeer-mdy-laravel-tap-payments/health.svg)](https://phpackages.com/packages/shabeer-mdy-laravel-tap-payments)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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