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

ActiveLibrary[Payment Processing](/categories/payments)

bamalik1996/tap-payment-gateway-laravel
=======================================

010PHP

Since Apr 30Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Tap payment gateway laravel
===========================

[](#tap-payment-gateway-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/db16f0774b40c61805c858ce1d3ed624ab90824cb58e4970fe8eddd966a56c29/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f62616d616c696b313939362f7461702d7061796d656e742d676174657761792d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bamalik1996/tap-payment-gateway-laravel)[![Total Downloads](https://camo.githubusercontent.com/bd9f13ff6cb3c0ac2a5d8370e0a8b89556a9e0106c2eda80df584fe204be95b0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62616d616c696b313939362f7461702d7061796d656e742d676174657761792d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bamalik1996/tap-payment-gateway-laravel)[![GitHub Actions](https://github.com/bamalik1996/tap-payment-gateway-laravel/actions/workflows/main.yml/badge.svg)](https://github.com/bamalik1996/tap-payment-gateway-laravel/actions/workflows/main.yml/badge.svg)

Tap Payment SDK Package for PHP Laravel

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

[](#installation)

You can install the package via composer:

```
composer require bamalik1996/tap-payment-gateway-laravel
```

Environment Variables
---------------------

[](#environment-variables)

To run this project, you will need to add the following environment variables to your .env file

`TAP_PAYMENT_MODE` = 'sandbox' // production

`TAP_PAYMENT_SECRET_KEY`

`TAP_PAYMENT_PUBLISH_KEY`

`TAP_PAYMENT_SANDBOX_SECRET_KEY`

`TAP_PAYMENT_SANDBOX_PUBLISH_KEY`\## Documentation (Charge)

- [Charge](https://developers.dev.tap.company/reference/charges-2)

Charge Create
-------------

[](#charge-create)

```
use Bamalik1996\TapPaymentGateway\TapPaymentGateway;
```

```
    $trans_object["amount"]                   =  123;
    $trans_object["currency"]                 = 'AED';
    $trans_object["threeDsecure"]             = true;
    $trans_object["save_card"]                = false;
    $trans_object["description"]              = "ORDER ID :" . 1;
    $trans_object["statement_descriptor"]     = 'Sample';
    $trans_object["metadata"]["udf1"]          = 'test';
    $trans_object["metadata"]["udf2"]          = 'test';
    $trans_object["reference"]["transaction"]  = 'txn_0000' . 2;
    $trans_object["reference"]["order"]        = 2;
    $trans_object["receipt"]["email"]          = false;
    $trans_object["receipt"]["sms"]            = true;
    $trans_object["customer"]["first_name"]    = 'auth()->user()->last_name';
    $trans_object["customer"]["last_name"]    = 'auth()->user()->first_name';
    $trans_object["customer"]["email"]        = 'auth()->user()->email';
    $trans_object["customer"]["phone"]["country_code"]       = '';
    $trans_object["customer"]["phone"]["number"] = '';
    $trans_object["source"]["id"] = 'src_all';
    $trans_object["post"]["url"] = '1';
    $trans_object["redirect"]["url"] =  'v';
    $tapPaymentGateway = new TapPaymentGateway;
    return ($tapPaymentGateway->charges()->create($trans_object));
```

Charge Update
-------------

[](#charge-update)

```
use Bamalik1996\TapPaymentGateway\TapPaymentGateway;

    $tapPaymentGateway = new TapPaymentGateway;

    return $tapPaymentGateway->charges()->update($id,[
        "description"=> "test",
        "receipt"=> [
            "email"=> false,
            "sms"=> true
        ],
        "metadata"=> [
            "udf2"=> "testing update"
        ]
    ]);
```

Charge Retrieve
---------------

[](#charge-retrieve)

```
use Bamalik1996\TapPaymentGateway\TapPaymentGateway;

    $tapPaymentGateway = new TapPaymentGateway;

    return $tapPaymentGateway->charges()->retrieve($id);
```

Charge Delete
-------------

[](#charge-delete)

```
use Bamalik1996\TapPaymentGateway\TapPaymentGateway;

    $tapPaymentGateway = new TapPaymentGateway;

    return $tapPaymentGateway->charges()->delete($id);
```

Charge All
----------

[](#charge-all)

```
use Bamalik1996\TapPaymentGateway\TapPaymentGateway;

    $tapPaymentGateway = new TapPaymentGateway;

    return $tapPaymentGateway->charges()->all([
        "period"=> [
            "date"=> [
            "from"=> time() - (30 * 24 * 60 * 60),//last 30 days
            "to"=> time()//today
            ]
        ],
        "status"=> "",
        "starting_after"=> "",
        "limit"=> 25
    ]);
```

Documentation (Custom)
----------------------

[](#documentation-custom)

- [Customer](https://developers.dev.tap.company/reference/customers)

Customer Create
---------------

[](#customer-create)

```
use Bamalik1996\TapPaymentGateway\TapPaymentGateway;
```

```
    $params = array (
        'first_name' => 'test',
        'middle_name' => 'test',
        'last_name' => 'test',
        'email' => 'test@test.com',
        'phone' =>
        array (
            'country_code' => '965',
            'number' => '51234567',
        ),
        'description' => 'test',
        'metadata' =>
        array (
            'sample string 1' => 'string1',
            'sample string 3' => 'string2',
        ),
        'currency' => 'KWD',
    );

    $tapPaymentGateway = new TapPaymentGateway;
    return ($tapPaymentGateway->customers()->create($params));
```

Customer Update
---------------

[](#customer-update)

```
use Bamalik1996\TapPaymentGateway\TapPaymentGateway;

    $tapPaymentGateway = new TapPaymentGateway;

    return $tapPaymentGateway->customers()->update($id,[
      'first_name' => 'test',
        'middle_name' => 'test',
        'last_name' => 'test',
        'email' => 'test@test.com',
        'phone' =>
        array (
            'country_code' => '965',
            'number' => '51234567',
        ),
        'description' => 'test',
        'metadata' =>
        array (
            'sample string 1' => 'string1',
            'sample string 3' => 'string2',
        ),
        'currency' => 'KWD',
    ]);
```

Customer Retrieve
-----------------

[](#customer-retrieve)

```
use Bamalik1996\TapPaymentGateway\TapPaymentGateway;

    $tapPaymentGateway = new TapPaymentGateway;

    return $tapPaymentGateway->customers()->retrieve($id);
```

Customer Delete
---------------

[](#customer-delete)

```
use Bamalik1996\TapPaymentGateway\TapPaymentGateway;

    $tapPaymentGateway = new TapPaymentGateway;

    return $tapPaymentGateway->customers()->delete($id);
```

Customer All
------------

[](#customer-all)

```
use Bamalik1996\TapPaymentGateway\TapPaymentGateway;

    $tapPaymentGateway = new TapPaymentGateway;

    return $tapPaymentGateway->customers()->all([
        "period"=> [
            "date"=> [
            "from"=> time() - (30 * 24 * 60 * 60),//last 30 days
            "to"=> time()//today
            ]
        ],
        "status"=> "",
        "starting_after"=> "",
        "limit"=> 25
    ]);
```

More Help
---------

[](#more-help)

- [API Documentation](https://tap.company/developers)
- [Charges](https://developers.dev.tap.company/reference/charges-2)
- [Customers](https://developers.dev.tap.company/reference/customers)

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

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/61cbd7c160accdced566b71ee2419b27c974f01acd768867a0e174a664b8496b?d=identicon)[bamalik1996](/maintainers/bamalik1996)

---

Top Contributors

[![bamalik1996](https://avatars.githubusercontent.com/u/13783854?v=4)](https://github.com/bamalik1996 "bamalik1996 (7 commits)")

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/bamalik1996-tap-payment-gateway-laravel/health.svg)](https://phpackages.com/packages/bamalik1996-tap-payment-gateway-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)
