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

ActiveLibrary[Payment Processing](/categories/payments)

roksta/ipay-ke
==============

iPay implementation in kenya.

05PHP

Since May 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/roksta21/ipay-ke)[ Packagist](https://packagist.org/packages/roksta/ipay-ke)[ RSS](/packages/roksta-ipay-ke/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

iPay Kenya Intergration
=======================

[](#ipay-kenya-intergration)

This package is designed for use with Laravel.

#### Installation

[](#installation)

```
composer require roksta/ipay-ke
```

#### Configuration

[](#configuration)

Publish config file to set iPay options.

```
php artisan vendor:publish --provider="Roksta\IPay\Providers\IPayServiceProvider"
```

#### Use

[](#use)

Set your environment variables in your .env file

```
IPAY_ENV=live or sandbox
IPAY_SECRET_KEY="your_ipay_secret_key"
IPAY_VENDOR_ID="your_ipay_vendor_id"
IPAY_MOBILE_CALLBACK_URL="https://yoursite.com/callback-url"
IPAY_CARD_CALLBACK_URL="https://yoursite.com/callback-url"

```

#### Initialize iPay

[](#initialize-ipay)

```
$ipay = IPay::orderId(1234)
          ->amount(1)
          ->customer($phone_number, $email);

$response = $ipay->initiate();
```

- Note, phone numer and email cannot be null.

#### Mobile STK Push

[](#mobile-stk-push)

```
$stk_response = Ipay::stk('network')->push($phone_number, $response->data->sid);
```

- Note: network options and sid are contained within the $response object

#### Generate Pay with iPay button

[](#generate-pay-with-ipay-button)

```
$ipay->generateForm('button_text', 'button_class')
```

- button\_text refers to the text diplayed in the button, eg, Pay With IPay
- button\_class refers to which classes to be applied to the button, eg 'btn btn-primary'

### Licence

[](#licence)

The package is provided under the MIT License.

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

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/dd09ef96b0cad07f317de336c5187435d45d9a46b985a79b4b0b2e508b9ff64e?d=identicon)[sam\_roksta](/maintainers/sam_roksta)

---

Top Contributors

[![mbuthias21-lgtm](https://avatars.githubusercontent.com/u/247016240?v=4)](https://github.com/mbuthias21-lgtm "mbuthias21-lgtm (5 commits)")

### Embed Badge

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

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

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