PHPackages                             vmdevelopment/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. [API Development](/categories/api)
4. /
5. vmdevelopment/laravel-tap-payments

ActiveLibrary[API Development](/categories/api)

vmdevelopment/laravel-tap-payments
==================================

Tap Payment REST API package for Laravel

1.0.0(7y ago)1544117[3 issues](https://github.com/vmdevelopment/laravel-tap-payments/issues)[1 PRs](https://github.com/vmdevelopment/laravel-tap-payments/pulls)MITPHPPHP ^7.1

Since Apr 20Pushed 5y ago2 watchersCompare

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

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

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

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

Laravel package for

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

[](#installation)

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

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

```

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

OR simply run

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

```

For laravel &gt;=5.5 that's all. 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' => [
	\VMdevelopment\TapPayment\TapPaymentServiceProvider::class
]
```

Now add the alias.

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

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

[](#configuration)

To publish config run

```
php artisan vendor:publish --provider="VMdevelopment\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 VMdevelopment\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

29

—

LowBetter than 60% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity54

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

Unknown

Total

1

Last Release

2576d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[skagarwal/google-places-api

Google Places Api

1913.0M8](/packages/skagarwal-google-places-api)[dcblogdev/laravel-microsoft-graph

A Laravel Microsoft Graph API (Office365) package

168285.5k1](/packages/dcblogdev-laravel-microsoft-graph)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1344.8k1](/packages/jasara-php-amzn-selling-partner-api)[grantholle/powerschool-api

A Laravel package to make interacting with PowerSchool less painful.

1715.6k1](/packages/grantholle-powerschool-api)

PHPackages © 2026

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