PHPackages                             uisits/ipay - 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. uisits/ipay

ActiveLibrary[Payment Processing](/categories/payments)

uisits/ipay
===========

Package for Ipay Payment Gateway

07[5 issues](https://github.com/uisits/ipay/issues)[4 PRs](https://github.com/uisits/ipay/pulls)PHP

Since Apr 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/uisits/ipay)[ Packagist](https://packagist.org/packages/uisits/ipay)[ RSS](/packages/uisits-ipay/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (5)Used By (0)

iPay Package
============

[](#ipay-package)

[![Build Status](https://camo.githubusercontent.com/22e8b1536748d846a2309c142d2603f9cd0d889b0c1c0641ad2195e580eaa33e/68747470733a2f2f7472617669732d63692e6f72672f646f67652f776f772e737667)](https://travis-ci.org/doge/wow)[![downloads](https://camo.githubusercontent.com/be8a68730c3f90ad91128607ea4a492eef764933b88b8b07daac87bf393606dd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7569736974732f697061792e7376673f7374796c653d706c6173746963)](https://img.shields.io/packagist/dt/uisits/ipay.svg?style=plastic)[![Issues](https://camo.githubusercontent.com/e285800f04d5b471cd61dd9270e848637859dd57db6d1fc958d3464e32f0dbc0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f7569736974732f697061792e737667)](https://github.com/uisits/ipay/issues)[![Release](https://camo.githubusercontent.com/499c5ed8682c50679205e31c1c506525ee706a91e5cf45f33c053914d044d691/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7569736974732f697061792e7376673f7374796c653d706c6173746963)](https://github.com/uisits/ipay/releases)

---

About
-----

[](#about)

uisits/ipay is package for ipay payment gateway. Please refer to the inter departmental iPay reference guide to get more details.

[iPAY Departmental Reference Guide](https://drive.google.com/open?id=13XY_XSrydsaGZQNrKirC3XFWy_l-UGY0Z94AFbYzmv0)

---

Installation Guide
------------------

[](#installation-guide)

---

- Note
    - Before installing this package make sure you install the following packages

    1. nesbot/carbon ```
        composer require nesbot/carbon

        ```
    2. guzzlehttp\\guzzle ```
        composer require guzzlehttp/guzzle

        ```

---

### Installation Steps

[](#installation-steps)

1. Run

    ```
    composer require uisits/ipay

    ```
2. Add Service Provider to your config/app.php

    ```
    uisits\ipay\IpayServiceProvider::class,

    ```

    Alternatively Add a Facade to your config/app.php (Under aliases array)

    ```
    'Ipay' => uisits\ipay\app\Facade\IpayFacade::class,

    ```
3. Publish the resources

    ```
    php artisan vendor:publish

    ```
4. Migrate the database

    ```
    php artisan migrate

    ```
5. Edit the config/ipay.php file
6. In your Controller to Send a payment write following code

    ```
    use uisits\ipay\app\Http\Controllers\IpayController as ipay;

    $ipay = new ipay();
    $redirect_url = $ipay->initiatePayment($amount);

    If you need to save the transaction details in another table you can fetch the latest transaction from the Ipay table and insert the records in the new table.

    Validate Url then send redirect away

    For Ex:
    if(\filter_var($redirect_url,FILTER_VALIDATE_URL)){
        return redirect()->away($redirect_url);
    }

    ```

    **OR Alternatively using Facade**

    ```
    use Ipay;

    $redirect_url = Ipay::initiatePayment($amount);

    Validate Url then send redirect away

    If you need to save the transaction details in another table you can fetch the latest transaction from the Ipay table and insert the records in the new table.

    For Ex:
    if(\filter_var($redirect_url,FILTER_VALIDATE_URL)){
        return redirect()->away($redirect_url);
    }

    ```
7. To Capture the payment send the request from ipay server which is mapped to your application

    ```
    $ipay->capturePayment($request);

    ```

    Or Using Facade

    ```
    Ipay::capturePayment($request);

    ```

    The **capturePayment()** function returns **true** or **throws error**.

---

Docs
----

[](#docs)

1. initiatePayment() > **Info: Initiate the Payment Request with Ipay Server**Parameters: float $amount return: string URL to redirect to Ipay server for payment form
2. capturePayment() > **Info: Send a Capture Request to Ipay Server**Parameters: HTTP $request with TOKEN from iPay Server return: boolean true Successful transaction | throw error for Failed transaction

---

Running Tests
-------------

[](#running-tests)

> **Note:**1. You require .env.example file with all necessary parameters for iPay to work. These parameters can be found in the Interdepartmental Ipay Guide listed above. Please copy the .env.example file to vendor/uisits/ipay/.env.example path. 2. Please run composer install to install all dependencies including --dev dependencies 3. Navigate to vendor/uisits/ipay and run phpunit

---

TODO
----

[](#todo)

- Option for user to save transaction to Database or not
- Add Costs to Table

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 71.4% 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/740bacd4c073191efba56c0256c7db4e2f3c1dac40f7ff44c1c904e7571860a0?d=identicon)[uisits](/maintainers/uisits)

---

Top Contributors

[![ChinwalPrasad](https://avatars.githubusercontent.com/u/40767861?v=4)](https://github.com/ChinwalPrasad "ChinwalPrasad (5 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

---

Tags

ipaypayment

### Embed Badge

![Health badge](/badges/uisits-ipay/health.svg)

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

###  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)
