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

ActiveLibrary[Payment Processing](/categories/payments)

spacemudd/laravel-tap-payments
==============================

Tap Payment REST API package for Laravel

2.0.1(5y ago)73.3k4MITPHPPHP ^7.1

Since Apr 20Pushed 5y agoCompare

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

READMEChangelog (2)Dependencies (2)Versions (4)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

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

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 ~281 days

Total

3

Last Release

2022d ago

Major Versions

1.0.0 → 2.0.02020-11-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/09004ee6840ecc95c73b74511971759a31049b972cd8a12347a22caf86e4db2b?d=identicon)[spacemudd](/maintainers/spacemudd)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4845.9k](/packages/sebdesign-laravel-viva-payments)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)[karson/mpesa-php-sdk

172.2k](/packages/karson-mpesa-php-sdk)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[henryejemuta/laravel-monnify

A laravel package to seamlessly integrate monnify api within your laravel application

132.1k](/packages/henryejemuta-laravel-monnify)

PHPackages © 2026

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