PHPackages                             abdu/paymentgateway - 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. abdu/paymentgateway

ActiveLibrary[Payment Processing](/categories/payments)

abdu/paymentgateway
===================

this is a package for PHP (Laravel ) developers to interate their system to our payment gateway

v1.0.0(4y ago)18MITPHP

Since Jun 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/abduselam1/paymentPHP)[ Packagist](https://packagist.org/packages/abdu/paymentgateway)[ RSS](/packages/abdu-paymentgateway/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Payment gateway SDK for laravel developers
==========================================

[](#payment-gateway-sdk-for-laravel-developers)

this is a package for PHP (Laravel ) developers to interate their system to our payment gateway

before using the package please goto our [website](https://payment.hager-bet.com/) and register as a merchant

after creating an acount goto the app page and create your app

\#installation

`composer require abdu/paymentgateway`

in your .env file put your credentials

```
PAYMENT_GATEWAY_KEY=key
PAYMENT_GATEWAY_USERNAME=username
PAYMENT_GATEWAY_PASSWORD=**********

```

And check in your config/app.php file that the \_cipher property set to \_AES-256-CBC

\#usage

In your controller import the package

```
use Abdu\Paymentgateway\Payment;

public function showBalance(){
    $payment = new Payment();

    return payment->queryBalance();
}
```

functions
=========

[](#functions)

checkout
--------

[](#checkout)

If you need your customer to pay you call this function

```
    $payment->checkout($amount,$redirect_url,$error_redirect_url)
```

### parameters

[](#parameters)

#### amount \_required | float

[](#amount-_required--float)

you have to set an amonut of money that you need to accept from your client

### redirect\_url required | string

[](#redirect_url-required--string)

a return url after a successful operation

### error\_redirect\_url required | string

[](#error_redirect_url-required--string)

a return url after a failed operation

queryBalance
------------

[](#querybalance)

whenever you need to query your balance call this method no parameter needed

```
    $payment->queryBalance()
```

\##getInvoice Every time you need a single invoice fire this method

```
$payment->getInvoice($transaction_id)
```

### parameters

[](#parameters-1)

#### transaction\_id \_required

[](#transaction_id-_required)

you have to set an int of transaction id

invoice
-------

[](#invoice)

if you need to retriev a collection of invoices

#### parameters

[](#parameters-2)

- *year* - int|string|\_optional you can get any year invoices like 2022,2021 but if you set start time we override the year with start and
- *paginate* - bool|\_optional If you need to paginate your records (default false)
- *paginatePerpage* - int|\_optional how many records do you need per page in the pagination (default 10)

```
    $payment->invoice()
```

send
----

[](#send)

every time you need to send a money to a person or people you can use this method

#### parameters

[](#parameters-3)

- *address* - \_string | \_array | \_required - an address is a phone number of a customer who is using our payment gateway or a collection of phone number stored in array *phone number* must start with +2519.......
- *amount* - \_float | \_array | \_required the amount of money an address can get if its a float value the amount transfered to the address if its an array the amount of money transfered with respect to the adress

```
    //option 1 single adress
    $address = "+251917949637";
    $amount = 4223.02;

    $payment->send($address,$amount);

    //option 2 multiple address and constant amount

    $address = ["+251917949637","+251929194872"];
    $amount = 4223.02;

    $payment->send($address,$amount);

    //option 2 multiple address with different amount

    $address = ["+251917949637","+251929194872"];
    $amount = [4223.02,488.98];

    $payment->send($address,$amount);
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

1489d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/57281126?v=4)[Abduselam Hafiz](/maintainers/abduselam1)[@abduselam1](https://github.com/abduselam1)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/abdu-paymentgateway/health.svg)

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

###  Alternatives

[msilabs/bkash

bKash Payment Gateway API for Laravel Framework.

181.2k](/packages/msilabs-bkash)

PHPackages © 2026

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