PHPackages                             osag11/kkiapay-php - 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. osag11/kkiapay-php

ActiveLibrary[Payment Processing](/categories/payments)

osag11/kkiapay-php
==================

Php sdk for kkiapay payment gateway

01PHP

Since Jun 8Pushed 5y agoCompare

[ Source](https://github.com/osag11/php-sdk)[ Packagist](https://packagist.org/packages/osag11/kkiapay-php)[ RSS](/packages/osag11-kkiapay-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

KKIAPAY PHP-SDK
===============

[](#kkiapay-php-sdk)

Raw Files
---------

[](#raw-files)

```
    git clone https://github.com/osag11/php-sdk.git
```

Installing
----------

[](#installing)

Using composer:

```
    composer require osag11/kkiapay-php
```

Initialization
--------------

[](#initialization)

#### Production

[](#production)

```
    $kkiapay = new \Kkiapay\Kkiapay($public_key, $private_key, $secret);
```

#### Sandbox

[](#sandbox)

```
    $kkiapay = new \Kkiapay\Kkiapay($public_key, $private_key, $secret, $sandbox = true);
```

Request to retrieve transactions
--------------------------------

[](#request-to-retrieve-transactions)

#### EXAMPLE

[](#example)

```
    $kkiapay->verifyTransaction($transaction_id);
```

Request to revert transaction
-----------------------------

[](#request-to-revert-transaction)

#### EXAMPLE

[](#example-1)

```
    $kkiapay->refundTransaction($transaction_id);
```

Request to schedule payout
--------------------------

[](#request-to-schedule-payout)

#### EXAMPLE

[](#example-2)

```

    // Example to schedule payout when amount reaches a ceiling
    $kkiapay->setupPayout(array( "algorithm" => "roof", "send_notification" => true,
        "destination_type" => "MOBILE_MONEY", "roof_amount" => "1000",
        "destination" => "22997000000" ));

        // Example to schedule payout by frequency
    $kkiapay->setupPayout(array( "algorithm" => "rate", "send_notification" => true,
        "destination_type" => "MOBILE_MONEY", "rate_frequency" => "1m",
        "destination" => "22997000000" ));
```

PARAMETERSDESCRIPTIONalgorithm(String) "roof" if the amount reaches a ceiling or "rate" for refund by frequency.send\_nofitication(Boolean) to receive a notification after payment.destination\_type(String) "BANK\_ACCOUNT" or "MOBILE\_MONEY"destination(String) the bank number or phone number of the receiver of the refundrate\_frequency(String) "1m", "1w", "3j" Refund frequency when choosing "rate" algorithmroof\_amount(String) Refund amount when choosing "roof" algorithmCOMPLETE POSSIBLE STATUS LIST
-----------------------------

[](#complete--possible-status-list)

STATUSDESCRIPTIONSUCCESSSuccessful transactionFAILEDTransaction failedINSUFFICIENT\_FUNDNot enough money in developper accountTRANSACTION\_NOT\_ELIGIBLEThis transaction are already reverted or are not eligibleTRANSACTION\_NOT\_FOUNDTransaction not foundINVALID\_TRANSACTIONYou are not owner of this transactionINVALID\_TRANSACTION\_TYPEWe can't revert this transactionINVALID\_PAYOUT\_DESTINATION\_ACCOUNTProvided destination account is not valid mobile money account

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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/391a9173e123e5fa66ded1dc7e69348e973289e29f7bae374aa86ee0181bcc2f?d=identicon)[osag11](/maintainers/osag11)

---

Top Contributors

[![issotina](https://avatars.githubusercontent.com/u/14887303?v=4)](https://github.com/issotina "issotina (17 commits)")[![osag11](https://avatars.githubusercontent.com/u/51260916?v=4)](https://github.com/osag11 "osag11 (7 commits)")[![barbeblance](https://avatars.githubusercontent.com/u/44818809?v=4)](https://github.com/barbeblance "barbeblance (6 commits)")[![boussarilatif](https://avatars.githubusercontent.com/u/38128001?v=4)](https://github.com/boussarilatif "boussarilatif (5 commits)")[![KurtzL](https://avatars.githubusercontent.com/u/26407866?v=4)](https://github.com/KurtzL "KurtzL (3 commits)")[![barbeblanche96](https://avatars.githubusercontent.com/u/50922402?v=4)](https://github.com/barbeblanche96 "barbeblanche96 (2 commits)")

### Embed Badge

![Health badge](/badges/osag11-kkiapay-php/health.svg)

```
[![Health](https://phpackages.com/badges/osag11-kkiapay-php/health.svg)](https://phpackages.com/packages/osag11-kkiapay-php)
```

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