PHPackages                             nxmad/larapay - 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. nxmad/larapay

AbandonedArchivedLibrary[Payment Processing](/categories/payments)

nxmad/larapay
=============

Powerful multi-gateway payment processing library designed to make life easier in Laravel 5

0.3.2(8y ago)171[1 PRs](https://github.com/nxmad/Larapay/pulls)MITPHPPHP ^7.0

Since Mar 15Pushed 6y ago1 watchersCompare

[ Source](https://github.com/nxmad/Larapay)[ Packagist](https://packagist.org/packages/nxmad/larapay)[ Docs](https://skylex.pro/dev/skylex)[ RSS](/packages/nxmad-larapay/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (2)Versions (7)Used By (0)

[![](./Larapay.png)](./Larapay.png)

---

> Larapay — a powerful Laravel extension with 2 core functionalities: 1) abstract interface for any payment gateway; 2) accounting system for your users.

 [ ![Software License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667) ](./LICENSE.md) [ ![Scrutinizer Code Quality](https://camo.githubusercontent.com/625d3728c84e035446a07f662c0adac0c97b5930f373d333592771a907b52263/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e786d61642f4c6172617061792f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572) ](https://scrutinizer-ci.com/g/nxmad/Larapay/?branch=master) [ ![Build Status](https://camo.githubusercontent.com/8490ad7d8cd7f2a32771b9f5fd153463301dbd8fcf47f39577ebe5097efd2f0a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e786d61642f4c6172617061792f6261646765732f6275696c642e706e673f623d6d6173746572) ](https://scrutinizer-ci.com/g/nxmad/Larapay/build-status/master)

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

[](#installation)

This package can be installed as a [Composer](https://getcomposer.org/) dependency.

```
$ composer require nxmad/larapay
```

If you don't use auto-discovery (or your Laravel version &lt; 5.5), add the ServiceProvider to the `providers` array in `config/app.php`

```
Nxmad\Larapay\LarapayServiceProvider::class,
```

Publish default configuration file `larapay.php`

```
$ php artisan vendor:publish
```

Usage example
-------------

[](#usage-example)

```
// Setup transaction for user
// Actually, you can use any Entity (Model) instead of User
// Transaction can have positive and negative amount
$transaction = $request->user()->setup(- $amount, $description);

// Check if the user can afford this order
if ($transaction->affordable() || $request->user()->canAfford($transaction)) {
    // do some logic...

    // and then save the transaction as sucessfull
    // this way:
    $transaction->makeSuccessful();

    // or this way:
    $transaction(Transaction::STATE_SUCCESSFUL);
} else {
    // Otherwise redirect user to the payment gateway (for .e.g)
    $gateway = payments('paypal');

    // There are 3 ways of interact with payment gateway:
    // Redirect (GET), POST form and any custom behavior you can define by yourself
    return $gateway->interact($transaction);
}
```

Please see [Wiki](../../wiki) for more examples.

Supported gateways
------------------

[](#supported-gateways)

You can add your gateway implementation to this list by creating an [issue](../../issues/new).

GatewayComposer packageMaintainerUnitpaynxmad/larapay-unitpay[Alex Balatsky](https://github.com/nxmad)WebMoneynxmad/larapay-webmoney[Alex Balatsky](https://github.com/nxmad)Qiwi.com P2Pnxmad/larapay-qiwi-p2p[Alex Balatsky](https://github.com/nxmad)Yandex.Money P2Pnxmad/larapay-yandex-money-p2p[Alex Balatsky](https://github.com/nxmad)Testing
-------

[](#testing)

*Since 1.0*

```
$ composer test
```

Credits
-------

[](#credits)

- [Alex Balatsky](https://github.com/nxmad)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.8% 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

Every ~111 days

Total

5

Last Release

2530d ago

Major Versions

0.4.0-rc2 → 1.0.0-rc.12019-05-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/15c754eb8dad63c3b1d88a20e89c6b9c02c2c5e3523d13e161a4c59634a4de05?d=identicon)[nxmad](/maintainers/nxmad)

---

Top Contributors

[![lexwitte](https://avatars.githubusercontent.com/u/7093650?v=4)](https://github.com/lexwitte "lexwitte (15 commits)")[![balatsky](https://avatars.githubusercontent.com/u/86746977?v=4)](https://github.com/balatsky "balatsky (1 commits)")

---

Tags

paymentstransactionsskylexlarapay

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nxmad-larapay/health.svg)

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

###  Alternatives

[amsgames/laravel-shop

Package set to provide shop or e-commerce functionality (such as CART, ORDERS, TRANSACTIONS and ITEMS) to Laravel for customizable builds.

4845.9k](/packages/amsgames-laravel-shop)

PHPackages © 2026

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