PHPackages                             coopxl/tapayment - 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. coopxl/tapayment

ActiveLibrary[API Development](/categories/api)

coopxl/tapayment
================

Tap Payment REST API package for Laravel

v2.0.2(1y ago)04MITPHPPHP ^8.2

Since Feb 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/hossam20520/tap-company-payment)[ Packagist](https://packagist.org/packages/coopxl/tapayment)[ RSS](/packages/coopxl-tapayment/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (2)Versions (6)Used By (0)

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

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

Laravel package for

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

[](#installation)

Add `coopxl/tapayment` to your `composer.json`.

```
"coopxl/tapayment": "dev-master"

```

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

OR simply run

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

```

For laravel &gt;=11 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' => [
	\Coopxl\TapPayment\TapPaymentServiceProvider::class
]
```

Now add the alias.

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

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

[](#configuration)

To publish config run

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

28

—

LowBetter than 52% of packages

Maintenance40

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

5

Last Release

510d ago

Major Versions

v1.0.1 → v2.0.02025-02-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/770dc9bf98eafe1dc2a610770ef5b96ea34b9d94d5c47fc9680825e6933022fb?d=identicon)[hossam\_hassan](/maintainers/hossam_hassan)

### Embed Badge

![Health badge](/badges/coopxl-tapayment/health.svg)

```
[![Health](https://phpackages.com/badges/coopxl-tapayment/health.svg)](https://phpackages.com/packages/coopxl-tapayment)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[jasara/php-amzn-selling-partner-api

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

1348.7k1](/packages/jasara-php-amzn-selling-partner-api)

PHPackages © 2026

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