PHPackages                             haggag/laravel-tap-payment - 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. haggag/laravel-tap-payment

ActiveLibrary

haggag/laravel-tap-payment
==========================

Tap Payment SDK Package for PHP Laravel

1.0.0(3y ago)018.3k↓34.4%MITPHPPHP ^7.1|^7.2|^7.3|^8.0|^8.1|^8.2

Since May 9Pushed 3y agoCompare

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

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

laravel-tap-payment
===================

[](#laravel-tap-payment)

Tap Payment SDK Package for PHP Laravel [![New Project (20)](https://user-images.githubusercontent.com/14217354/158107594-cc7d0b4f-2e62-4d27-a09c-75aaae8e1e48.jpg)](https://user-images.githubusercontent.com/14217354/158107594-cc7d0b4f-2e62-4d27-a09c-75aaae8e1e48.jpg)

Laravel compatibility
---------------------

[](#laravel-compatibility)

Laravellaravel-tap-payment5.6.\* - 5.8.\* (PHP 7 required)0.0.15.6.\* - 8.\* (PHP 7 required)0.0.25.6.\* - 8.\* (PHP 7 required)0.0.3Installation
------------

[](#installation)

Use the package manager [composer](https://getcomposer.org/) to install foobar.

```
composer require essam/laravel-tap-payment
```

Usage
=====

[](#usage)

### Create Charge Ttransaction

[](#create-charge-ttransaction)

```
$TapPay = new Payment(['secret_api_Key'=> $secret_api_Key]);

$redirect = false; // return response as json , you can use it form mobile web view application

return $TapPay->charge([
        'amount' => 200,
        'currency' => 'AED',
        'threeDSecure' => 'true',
        'description' => 'test description',
        'statement_descriptor' => 'sample',
        'customer' => [
           'first_name' => 'customer',
           'email' => 'customer@gmail.com',
        ],
        'source' => [
          'id' => 'src_card'
        ],
        'post' => [
           'url' => null
        ],
        'redirect' => [
           'url' => url('check_payment.php')
        ]
   ],$redirect);
```

If the information is correct, you will be directed to the payment page

### Get Charge By Charge id

[](#get-charge-by-charge-id)

```
$TapPay = new Payment(['secret_api_Key'=> $secret_api_Key]);
$Charge =  $TapPay->getCharge($charge_id);
```

### Get Charges List

[](#get-charges-list)

```
$TapPay = new Payment(['secret_api_Key'=> $secret_api_Key]);

$ChargesList = $TapPay->chargesList([
'period' => [
  'date' => [
      'from' => Date('Y-m-d H:i:s'),
      'to' => Date('Y-m-d H:i:s'),
     ]
  ],
  'status' => 'INITIATED',
  'limit' => 30
]);
```

### Create Refund Ttransaction

[](#create-refund-ttransaction)

```
$TapPay = new Payment(['secret_api_Key'=> $secret_api_Key]);

$Refund = $TapPay->refund([
    'charge_id' => $charge_id,
     'amount' => 2,
     'currency' => 'AED',
     'reason' => 'type the refund reason',
     'post' => [
        'url' => 'http://post_after_refund_page.php'
   ]);
```

### get Refund By Refund id

[](#get-refund-by-refund-id)

```
$TapPay = new Payment(['secret_api_Key'=> $secret_api_Key]);

$Refund = $TapPay->getRefund($refund_id);
```

### get Refunds List

[](#get-refunds-list)

```
$TapPay = new Payment(['secret_api_Key'=> $secret_api_Key]);

$RefundList = $TapPay->refundList([
'period' => [
  'date' => [
      'from' => Date('Y-m-d H:i:s'),
      'to' => Date('Y-m-d H:i:s'),
     ]
  ],
  'limit' => 30
]);
```

Some Tutorial to learn How to use this Api
==========================================

[](#some-tutorial-to-learn-how-to-use-this-api)

Contributing
------------

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  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 97.1% 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

1105d ago

### Community

Maintainers

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

---

Top Contributors

[![sfwanessam](https://avatars.githubusercontent.com/u/14217354?v=4)](https://github.com/sfwanessam "sfwanessam (33 commits)")[![mahmoudhaggag641](https://avatars.githubusercontent.com/u/17066788?v=4)](https://github.com/mahmoudhaggag641 "mahmoudhaggag641 (1 commits)")

### Embed Badge

![Health badge](/badges/haggag-laravel-tap-payment/health.svg)

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

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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