PHPackages                             qpay-sdk/laravel - 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. qpay-sdk/laravel

ActiveLibrary[Payment Processing](/categories/payments)

qpay-sdk/laravel
================

QPay V2 payment integration for Laravel

1.0.0(2mo ago)10MITPHPPHP ^8.1CI failing

Since Feb 26Pushed 1mo agoCompare

[ Source](https://github.com/qpay-sdk/qpay-laravel)[ Packagist](https://packagist.org/packages/qpay-sdk/laravel)[ RSS](/packages/qpay-sdk-laravel/feed)WikiDiscussions main Synced 1mo ago

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

QPay Laravel
============

[](#qpay-laravel)

[![CI](https://github.com/qpay-sdk/qpay-laravel/actions/workflows/ci.yml/badge.svg)](https://github.com/qpay-sdk/qpay-laravel/actions)[![Packagist](https://camo.githubusercontent.com/827be58a0496828f2c29b2caf84923006eca41d8fd9095c45e19fd8164ad7b19/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f717061792d73646b2f6c61726176656c)](https://packagist.org/packages/qpay-sdk/laravel)[![License: MIT](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](LICENSE)

QPay V2 payment integration for Laravel.

Install
-------

[](#install)

```
composer require qpay-sdk/laravel
php artisan qpay:install
```

Configuration
-------------

[](#configuration)

Add to `.env`:

```
QPAY_BASE_URL=https://merchant.qpay.mn
QPAY_USERNAME=your_username
QPAY_PASSWORD=your_password
QPAY_INVOICE_CODE=your_invoice_code
QPAY_CALLBACK_URL=https://yoursite.com/qpay/webhook

```

Usage
-----

[](#usage)

```
use QPay\Laravel\Facades\QPay;
use QPay\Models\CreateSimpleInvoiceRequest;

$invoice = QPay::createSimpleInvoice(new CreateSimpleInvoiceRequest(
    invoiceCode: config('qpay.invoice_code'),
    senderInvoiceNo: 'ORDER-001',
    amount: 10000,
    callbackUrl: config('qpay.callback_url'),
));

// $invoice->invoiceId, $invoice->qrImage, $invoice->urls
```

Blade Components
----------------

[](#blade-components)

```

```

Webhook
-------

[](#webhook)

Listen for payment events:

```
use QPay\Laravel\Events\PaymentReceived;

Event::listen(PaymentReceived::class, function ($event) {
    // $event->paymentId
    // $event->result->rows
});
```

License
-------

[](#license)

MIT

###  Health Score

37

—

LowBetter than 82% of packages

Maintenance93

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

72d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/256abce1f8c60e471be886ba32e500133b26461307e59beb0ccd9c8f8682ef32?d=identicon)[usukhv](/maintainers/usukhv)

---

Top Contributors

[![usukhv](https://avatars.githubusercontent.com/u/5488836?v=4)](https://github.com/usukhv "usukhv (10 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/qpay-sdk-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/qpay-sdk-laravel/health.svg)](https://phpackages.com/packages/qpay-sdk-laravel)
```

###  Alternatives

[laraveldaily/laravel-invoices

Missing invoices for Laravel

1.5k1.3M4](/packages/laraveldaily-laravel-invoices)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)[karson/mpesa-php-sdk

172.2k](/packages/karson-mpesa-php-sdk)

PHPackages © 2026

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