PHPackages                             pralhadstha/omnipay-fonepay - 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. pralhadstha/omnipay-fonepay

ActiveLibrary[Payment Processing](/categories/payments)

pralhadstha/omnipay-fonepay
===========================

Fonepay Omnipay Package for PHP applications

v1.0.0(11mo ago)04MITPHP

Since May 31Pushed 1mo agoCompare

[ Source](https://github.com/pralhadstha/omnipay-fonepay)[ Packagist](https://packagist.org/packages/pralhadstha/omnipay-fonepay)[ RSS](/packages/pralhadstha-omnipay-fonepay/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

Omnipay: Fonepay QR
===================

[](#omnipay-fonepay-qr)

**Fonepay QR driver for the Omnipay PHP payment processing library**

[Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP.

Currently this package only implements Fonepay QR support for Omnipay. Fonepay functionality will be added soon.

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

[](#installation)

Omnipay is installed via [Composer](http://getcomposer.org/).

To install, simply require `league/omnipay` and `pralhadstha/omnipay-fonepay` with Composer:

```
composer require league/omnipay pralhadstha/omnipay-fonepay

```

Basic Usage
-----------

[](#basic-usage)

### Purchase

[](#purchase)

```
    use Omnipay\Omnipay;
    use Exception;

    $gateway = Omnipay::create('Fonepay_FonepayQr');

    $gateway->setUsername('fonepay_username_or_email');
    $gateway->setPassword('fonepay_password');
    $gateway->setMerchantCode('merchant_code_provided_by_fonepay');
    $gateway->setTestMode(false);

    try {
        $response = $gateway->purchase([
            'amount' => 1000.00,
            'productNumber' => "PN-100",
            'remarks1' => "Remark 1",
            'remarks2' => "Remark 2 if needed",
        ])->send();

        if ($response->isCustomRedirect()) {
            // provide the page to display the QR code.
        }
    } catch (Exception $e) {
        return $e->getMessage();
    }
```

### Payment Complete

[](#payment-complete)

```
    $gateway = Omnipay::create('Fonepay_FonepayQr');

    $gateway->setUsername('fonepay_username_or_email');
    $gateway->setPassword('fonepay_password');
    $gateway->setMerchantCode('merchant_code_provided_by_fonepay');
    $gateway->setTestMode(false);

    try {
        $response = $gateway->completePurchase([
            'productNumber' => "PN-100",
        ])->send();

        if ($response->isSuccessful()) {
            // Payment is successful and will have fonepayTraceId.
        } else {
            // Payment is received as failed and need to again check if payment is completed.
        }
    } catch (Exception $e) {
        return $e->getMessage();
    }
```

Working Example
---------------

[](#working-example)

Want to see working examples before integrating them into your project? View the examples **[here](https://github.com/pralhadstha/payment-gateways-examples)**

Official Doc
------------

[](#official-doc)

Please follow the Official Document provided by Fonepay to understand about the parameters and their descriptions. The document is not publicly available. Please contact Fonepay team for the documents.

Contributing
------------

[](#contributing)

Contributions are **welcome** and will be fully **credited**.

Contributions can be made via a Pull Request on [Github](https://github.com/pralhadstha/omnipay-fonepay).

Support
-------

[](#support)

If you are having general issues with Omnipay Fonepay, drop an email to  for quick support.

If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/pralhadstha/omnipay-fonepay/issues), or better yet, fork the library and submit a pull request.

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance72

Regular maintenance activity

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

346d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d46fb8b473d604d2f5eb4e27451ef88b44e10a430c0a0ce89b4e501fcfe95b2?d=identicon)[pralhad](/maintainers/pralhad)

---

Top Contributors

[![pralhadstha](https://avatars.githubusercontent.com/u/6309194?v=4)](https://github.com/pralhadstha "pralhadstha (6 commits)")

---

Tags

fonepayfonepaynepallaravelomnipaypayment-gatewaypaymentsphpphp-sdk

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/pralhadstha-omnipay-fonepay/health.svg)

```
[![Health](https://phpackages.com/badges/pralhadstha-omnipay-fonepay/health.svg)](https://phpackages.com/packages/pralhadstha-omnipay-fonepay)
```

###  Alternatives

[silverstripe/silverstripe-omnipay

SilverStripe Omnipay Payment Module

38106.0k15](/packages/silverstripe-silverstripe-omnipay)

PHPackages © 2026

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