PHPackages                             aleksandrzhiliaev/omnipay-nixmoney - 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. aleksandrzhiliaev/omnipay-nixmoney

ActiveLibrary[Payment Processing](/categories/payments)

aleksandrzhiliaev/omnipay-nixmoney
==================================

Nixmoney gateway for Omnipay payment processing library

1.0.1(7y ago)01.4k1MITPHP

Since Feb 25Pushed 7y agoCompare

[ Source](https://github.com/aleksandrzhiliaev/omnipay-nixmoney)[ Packagist](https://packagist.org/packages/aleksandrzhiliaev/omnipay-nixmoney)[ Docs](http://sassoft.ru)[ RSS](/packages/aleksandrzhiliaev-omnipay-nixmoney/feed)WikiDiscussions master Synced yesterday

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

omnipay-nixmoney
================

[](#omnipay-nixmoney)

[![Build Status](https://camo.githubusercontent.com/b169e4b75d5693aab35951b83ef43a966a4262a5645f0d8bb5d88829a03e8c59/68747470733a2f2f7472617669732d63692e6f72672f616c656b73616e64727a68696c696165762f6f6d6e697061792d6e69786d6f6e65792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/aleksandrzhiliaev/omnipay-nixmoney)[![Codacy Badge](https://camo.githubusercontent.com/be04758cf475728db7b6c2cb4896f19e918d95a6995a6336a210d70b83d672f7/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6365393463613635353430633464393862333738356162356138396664373937)](https://www.codacy.com/app/sassoftinc/omnipay-nixmoney?utm_source=github.com&utm_medium=referral&utm_content=aleksandrzhiliaev/omnipay-nixmoney&utm_campaign=Badge_Grade)[![Latest Stable Version](https://camo.githubusercontent.com/43f86198049e40be6ccb3751422c45d918df20a70b7072e3002a7d18b24cd142/68747470733a2f2f706f7365722e707567782e6f72672f616c656b73616e64727a68696c696165762f6f6d6e697061792d6e69786d6f6e65792f762f737461626c65)](https://packagist.org/packages/aleksandrzhiliaev/omnipay-nixmoney)[![Total Downloads](https://camo.githubusercontent.com/a34b1f30c1409d29645c9bdc2a07ee0b5ff4ea6d48b153310e51c728373acce3/68747470733a2f2f706f7365722e707567782e6f72672f616c656b73616e64727a68696c696165762f6f6d6e697061792d6e69786d6f6e65792f646f776e6c6f616473)](https://packagist.org/packages/aleksandrzhiliaev/omnipay-nixmoney)

Nixmoney gateway for [Omnipay](https://github.com/thephpleague/omnipay) payment processing library.

[Omnipay](https://github.com/omnipay/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements Nixmoney support for Omnipay.

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

[](#installation)

Omnipay is installed via [Composer](http://getcomposer.org/). To install, simply add it to your `composer.json` file:

```
{
    "require": {
        "aleksandrzhiliaev/omnipay-nixmoney": "*"
    }
}
```

And run composer to update your dependencies:

```
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update

```

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

[](#basic-usage)

The following gateways are provided by this package:

- Nixmoney

For general usage instructions, please see the main [Omnipay](https://github.com/omnipay/omnipay)repository. See also the [Nixmoney Documentation](http://info.nixmoney.com/en/integration)

Example
-------

[](#example)

1. Purchase:

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

$gateway->setAccount('');
$gateway->setAccountName('');
$gateway->setBaggageFields('');
$gateway->setSuggestedMemo('');
$gateway->setPasswordMd5('');
$gateway->setPassphrase('');
$gateway->setCurrency('');

$response = $gateway->purchase([
       'amount' => '0.1',
       'currency' => 'USD',
       'transactionId' => time(),
       'description' => 'Order # 123',
       'cancelUrl' => 'https://example.com',
       'returnUrl' => 'https://example.com',
       'notifyUrl' => 'https://example.com'
        ])->send();

if ($response->isSuccessful()) {
   // success
} elseif ($response->isRedirect()) {

   # Generate form to do payment
   $hiddenFields = '';
   foreach ($response->getRedirectData() as $key => $value) {
       $hiddenFields .= sprintf(
          '',
           htmlentities($key, ENT_QUOTES, 'UTF-8', false),
           htmlentities($value, ENT_QUOTES, 'UTF-8', false)
          )."\n";
   }

   $output = ' %2$s ';
   $output = sprintf(
      $output,
      htmlentities($response->getRedirectUrl(), ENT_QUOTES, 'UTF-8', false),
      $hiddenFields
   );
   echo $output;
   # End of generating form
} else {
   echo $response->getMessage();
}
```

2. Validate webhook

```
try {
    $response = $gateway->completePurchase()->send();
    $transactionId = $response->getTransactionId();
    $amount = $response->getAmount();
    $success = $response->isSuccessful();
    $currency = $response->getCurrency();
    if ($success) {
       // success
    }
} catch (\Exception $e) {
  // check $e->getMessage()
}
```

3. Do refund

```
try {
    $response = $gateway->refund(
        [
            'payeeAccount' => 'U04174047283211',
            'amount' => 0.1,
            'description' => 'Testing nixmoney',
            'currency' => 'USD',
        ]
    )->send();

    if ($response->isSuccessful()) {
        // success
    } else {
        // check $response->getMessage();
    }

} catch (\Exception $e) {
    // check $e->getMessage();
}
```

Support
-------

[](#support)

If you are having general issues with Omnipay, we suggest posting on [Stack Overflow](http://stackoverflow.com/). Be sure to add the [omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) so it can be easily found.

If you want to keep up to date with release anouncements, discuss ideas for the project, or ask more detailed questions, there is also a [mailing list](https://groups.google.com/forum/#!forum/omnipay) which you can subscribe to.

If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/aleksandrzhiliaev/omnipay-nixmoney/issues).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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

Every ~319 days

Total

3

Last Release

2725d ago

Major Versions

0.0.1 → 1.0.02017-05-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/c2b3b57c64f0a830f409ec8b43a05dc8c48048b701ce0e61633c4d7c8ff8e29b?d=identicon)[Sassoft](/maintainers/Sassoft)

---

Top Contributors

[![aleksandrzhiliaev](https://avatars.githubusercontent.com/u/12209346?v=4)](https://github.com/aleksandrzhiliaev "aleksandrzhiliaev (21 commits)")

---

Tags

nixmoneyomnipayphppaymentgatewaypaymerchantomnipaypurchasenixmoney

### Embed Badge

![Health badge](/badges/aleksandrzhiliaev-omnipay-nixmoney/health.svg)

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

###  Alternatives

[lokielse/omnipay-alipay

Alipay gateway for Omnipay payment processing library

587421.0k11](/packages/lokielse-omnipay-alipay)

PHPackages © 2026

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