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

ActiveLibrary[Payment Processing](/categories/payments)

groupedesign/tap-payments-laravel
=================================

Tap Payment REST API package for Laravel

012[1 issues](https://github.com/benbelgacemhichem/tap-payments-laravel/issues)PHP

Since May 11Pushed 5y ago1 watchersCompare

[ Source](https://github.com/benbelgacemhichem/tap-payments-laravel)[ Packagist](https://packagist.org/packages/groupedesign/tap-payments-laravel)[ RSS](/packages/groupedesign-tap-payments-laravel/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Tap Payment package for Laravel
===============================

[](#tap-payment-package-for-laravel)

Laravel package for

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

[](#installation)

Add `groupedesign/tap-payments-laravel` to your `composer.json`.

```
"groupedesign/tap-payments-laravel": "dev-master"

```

Run `composer update` to pull down the latest version of package.

OR simply run

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

```

This package supports Laravel new Package Discovery.

Otherwise you need to open up `/config/app.php` and add the service provider to your `providers` array.

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

Now add the alias.

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

Configuration
-------------

[](#configuration)

To publish config run

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

```

and modify the config file with your own information. File is located in `/config/tap-payment.php`

you can use this environment variables in 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 Charge(make payment)

[](#creating-chargemake-payment)

```
use Groupedesign\TapPayment\Facade\TapPayment;

public function pay()
{
	try{

		$payment = TapPayment::createCharge();

		$payment->setCustomerName( "John Doe" );

		$payment->setCustomerPhone( "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.
}
```

### Find ApiInvoice

[](#find-apiinvoice)

```
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

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8d80c4e1949e4bbb14890d126727251ce6227b71a9ac908a552002b6936675cd?d=identicon)[groupedesign](/maintainers/groupedesign)

---

Top Contributors

[![benbelgacemhichem](https://avatars.githubusercontent.com/u/6187016?v=4)](https://github.com/benbelgacemhichem "benbelgacemhichem (6 commits)")

### Embed Badge

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

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

###  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)
