PHPackages                             farzin-dev/laravel-webmoney-merchant - 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. farzin-dev/laravel-webmoney-merchant

ActiveLibrary[Payment Processing](/categories/payments)

farzin-dev/laravel-webmoney-merchant
====================================

WebMoneyMerchant payments for Laravel

v1.3.4(5y ago)0396MITPHPPHP &gt;=5.6.4

Since Feb 23Pushed 5y agoCompare

[ Source](https://github.com/farzin-dev/laravel-webmoney-merchant)[ Packagist](https://packagist.org/packages/farzin-dev/laravel-webmoney-merchant)[ Docs](https://github.com/actionm/laravel-webmoney-merchant)[ RSS](/packages/farzin-dev-laravel-webmoney-merchant/feed)WikiDiscussions master Synced yesterday

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

Laravel payment processor package for WebMoney Merchant
=======================================================

[](#laravel-payment-processor-package-for-webmoney-merchant)

[![Latest Stable Version](https://camo.githubusercontent.com/99d02f7c74a2a87c9c32207e7aa947dabaf9f020df1cc320bbe235f8c3da80ac/68747470733a2f2f706f7365722e707567782e6f72672f616374696f6e6d2f6c61726176656c2d7765626d6f6e65792d6d65726368616e742f762f737461626c65)](https://packagist.org/packages/actionm/laravel-webmoney-merchant)[![Build Status](https://camo.githubusercontent.com/99ca80ed942982f989bdaf19a1112a2091057db770461013ba1c8d8e11b590ff/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f616374696f6e6d2f6c61726176656c2d7765626d6f6e65792d6d65726368616e742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/actionm/laravel-webmoney-merchant)[![SensioLabsInsight](https://camo.githubusercontent.com/efb5045376023e1f230eed0456e1d7d091bfb421944ea78189c9be5c06e01ba9/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f33613965366664392d383264352d346566642d613864652d3431396434623063333764302f6d696e692e706e67)](https://insight.sensiolabs.com/projects/3a9e6fd9-82d5-4efd-a8de-419d4b0c37d0)[![Quality Score](https://camo.githubusercontent.com/e372715c3debd5a3e5e8910fb41f8bf10830124b5629bb7bed88529b51775ed5/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f616374696f6e6d2f6c61726176656c2d7765626d6f6e65792d6d65726368616e742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/actionm/laravel-webmoney-merchant)[![Total Downloads](https://camo.githubusercontent.com/349d634e0c19cad1f740374649d052c73362817b3ed0bf0b038d9b9427e6c1ae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616374696f6e6d2f6c61726176656c2d7765626d6f6e65792d6d65726368616e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/actionm/laravel-webmoney-merchant)[![License](https://camo.githubusercontent.com/0022d2caee067cd05ae806df84c2cc6a09f8d7635baac4e64b3275021cd91f4e/68747470733a2f2f706f7365722e707567782e6f72672f616374696f6e6d2f6c61726176656c2d7765626d6f6e65792d6d65726368616e742f6c6963656e7365)](https://packagist.org/packages/actionm/laravel-webmoney-merchant)

Accept payments via WebMoney Merchant ([merchant.webmoney.ru](https://merchant.webmoney.ru/conf/default.asp)) using this Laravel framework package ([Laravel](https://laravel.com)).

- receive payments, adding just the two callbacks
- receive payment notifications via your email or Slack

You can accept payments with WebMoney Merchant via WebMoney, credit cards etc.

#### Laravel 5.3, 5.4, PHP &gt;= 5.6.4

[](#laravel-53-54-php--564)

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

[](#installation)

You can install the package through Composer:

```
composer require actionm/laravel-webmoney-merchant
```

Add the service provider to the `providers` array in `config/app.php`:

```
'providers' => [

    ActionM\WebMoneyMerchant\WebMoneyMerchantServiceProvider::class,

]
```

Add the `WebMoneyMerchant` facade to your facades array:

```
    'WebMoneyMerchant' => ActionM\WebMoneyMerchant\Facades\WebMoneyMerchant::class,
```

Publish the configuration file and views

```
php artisan vendor:publish --provider="ActionM\WebMoneyMerchant\WebMoneyMerchantServiceProvider"
```

Publish only the configuration file

```
php artisan vendor:publish --provider="ActionM\WebMoneyMerchant\WebMoneyMerchantServiceProvider" --tag=config
```

Publish only the views

```
php artisan vendor:publish --provider="ActionM\WebMoneyMerchant\WebMoneyMerchantServiceProvider" --tag=views
```

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

[](#configuration)

Once you have published the configuration files, please edit the config file in `config/webmoney-merchant.php`.

- Create an account on [merchant.webmoney.ru](http://merchant.webmoney.ru)
- Set your project settings:

    - Merchant name;
    - Secret Key;
    - Secret Key X20;
    - Result URL;
    - Control sign forming method = `SHA256`;
    - Necessarily require signature payment form = `ON`;
    - Process payments with unique only lmi\_payment\_no = `ON`;
- After the configuration has been published, edit `config/webmoney-merchant.php`
- Copy the `Secret Key X20` and `Secret Key` params and paste into `config/webmoney-merchant.php`
- Set the callback static function for `searchOrderFilter` and `paidOrderFilter`
- Set notification channels (email and/or Slack) and Slack `webhook_url`

Usage
-----

[](#usage)

1. Generate an HTML payment form with enabled payment methods:

```
$payment_amount = Order amount

$payment_no = Unique order number in your project, numbers only from 1 to 2147483647

$item_name = Name of your order item, only latin characters.
```

```
WebMoneyMerchant::generatePaymentForm($payment_amount, $payment_no, $item_name);
```

Customize the HTML payment form in the published view:

`app/resources/views/vendor/webmoney-merchant/payment_form.blade.php`

2. Process the request from WebMoneyMerchant:

```
WebMoneyMerchant::payOrderFromGate(Request $request)
```

Important
---------

[](#important)

You must define callbacks in `config/webmoney-merchant.php` to search the order and save the paid order.

```
 'searchOrderFilter' => null  // ExampleController:searchOrderFilter($request)
```

```
 'paidOrderFilter' => null  // ExampleController::paidOrderFilter($request,$order)
```

Example
-------

[](#example)

The process scheme:

1. The request comes from `merchant.webmoney.ru` `GET` `http://yourproject.com/webmoney/result` to check if your website is available.
2. The request comes from `merchant.webmoney.ru` `POST` `http://yourproject.com/webmoney/result` (with params).
3. The function`ExampleController@payOrderFromGate` runs the validation process (auto-validation request params).
4. The static function `searchOrderFilter` will be called (see `config/webmoney-merchant.php` `searchOrderFilter`) to search the order by the unique id.
5. If the current order status is NOT `paid` in your database, the static function `paidOrderFilter` will be called (see `config/webmoney-merchant.php` `paidOrderFilter`).

Add the route to `routes/web.php`:

```
Route::post('/webmoney/result', 'ExampleController@payOrderFromGate');
Route::get('/webmoney/result',  'ExampleController@payOrderFromGateOK');
```

> **Note:**don't forget to save your full route url (e.g.  ) for your project on [merchant.webmoney.ru](merchant.webmoney.ru).

Create the following controller: `/app/Http/Controllers/ExampleController.php`:

```
class ExampleController extends Controller
{

    /**
     * Search the order if the request from WebMoney Merchant is received.
     * Return the order with required details for the webmoney request verification.
     *
     * @param Request $request
     * @param $order_id
     * @return mixed
     */
    public static function searchOrderFilter(Request $request, $order_id) {

        // If the order with the unique order ID exists in the database
        $order = Order::where('unique_id', $order_id)->first();

        if ($order) {
            $order['WEBMONEY_orderSum'] = $order->amount; // from your database

            // if the current_order is already paid in your database, return strict "paid";
            // if not, return something else
            $order['WEBMONEY_orderStatus'] = $order->order_status; // from your database
            return $order;
        }

        return false;
    }

    /**
     * When the payment of the order is received from WebMoney Merchant, you can process the paid order.
     * !Important: don't forget to set the order status as "paid" in your database.
     *
     * @param Request $request
     * @param $order
     * @return bool
     */
    public static function paidOrderFilter(Request $request, $order)
    {
        // Your code should be here:
        YourOrderController::saveOrderAsPaid($order);

        // Return TRUE if the order is saved as "paid" in the database or FALSE if some error occurs.
        // If you return FALSE, then you can repeat the failed paid requests on the WebMoney Merchant website manually.
        return true;
    }

    /**
     * Process the request from the WebMoney Merchant route.
     * searchOrderFilter is called to search the order.
     * If the order is paid for the first time, paidOrderFilter is called to set the order status.
     * If searchOrderFilter returns the "paid" order status, then paidOrderFilter will not be called.
     *
     * @param Request $request
     * @return mixed
     */
    public function payOrderFromGate(Request $request)
    {
        return WebMoneyMerchant::payOrderFromGate($request);
    }

    /**
    * Returns the service status for WebMoney Merchant request
    */
    public function payOrderFromGateOK()
    {
        return "YES";
    }

}
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please send me an email at  instead of using the issue tracker.

Credits
-------

[](#credits)

- [ActionM](https://github.com/actionm)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 90% 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 ~468 days

Total

4

Last Release

1961d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/76703263?v=4)[farzin-dev](/maintainers/farzin-dev)[@farzin-dev](https://github.com/farzin-dev)

---

Top Contributors

[![actionm](https://avatars.githubusercontent.com/u/1145098?v=4)](https://github.com/actionm "actionm (18 commits)")[![farzin-dev](https://avatars.githubusercontent.com/u/76703263?v=4)](https://github.com/farzin-dev "farzin-dev (2 commits)")

---

Tags

paymentslaravel-webmoney-merchantwebmoney-merchant

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/farzin-dev-laravel-webmoney-merchant/health.svg)

```
[![Health](https://phpackages.com/badges/farzin-dev-laravel-webmoney-merchant/health.svg)](https://phpackages.com/packages/farzin-dev-laravel-webmoney-merchant)
```

###  Alternatives

[unicodeveloper/laravel-paystack

A Laravel Package for Paystack

650975.6k11](/packages/unicodeveloper-laravel-paystack)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

768.0M9](/packages/chargebee-chargebee-php)[lemonsqueezy/laravel

A package to easily integrate your Laravel application with Lemon Squeezy.

58596.1k](/packages/lemonsqueezy-laravel)[mnastalski/przelewy24-php

Przelewy24 PHP library

52101.2k2](/packages/mnastalski-przelewy24-php)[tsaiyihua/laravel-linepay

linepay library for laravel

102.9k](/packages/tsaiyihua-laravel-linepay)

PHPackages © 2026

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