PHPackages                             allanvb/laravel-walletone - 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. allanvb/laravel-walletone

ActiveLibrary[Payment Processing](/categories/payments)

allanvb/laravel-walletone
=========================

Laravel integration of walletone.com payment gateway

1.0.2(5y ago)013MITPHPPHP &gt;=7.0

Since Sep 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/allanvb/laravel-walletone)[ Packagist](https://packagist.org/packages/allanvb/laravel-walletone)[ RSS](/packages/allanvb-laravel-walletone/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (4)Used By (0)

 Laravel package for integrating WalletOne payment gateway into laravel app
----------------------------------------------------------------------------

[](#----laravel-package-for-integrating-walletone-payment-gateway-into-laravel-app)

 [![Packagist Version](https://camo.githubusercontent.com/352bb5d36df664aee208a064e2c2fa2d0c42685267c1877c6933d669b096d924/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c6c616e76622f6c61726176656c2d77616c6c65746f6e653f636f6c6f723d6f72616e6765267374796c653d666c61742d737175617265)](https://packagist.org/packages/allanvb/laravel-walletone) [![GitHub last commit](https://camo.githubusercontent.com/304b82c1cadc3e00ccb6991470f5dd65c3e290c983aa3d90b267de9a0d2389b2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f616c6c616e76622f6c61726176656c2d77616c6c65746f6e653f636f6c6f723d626c7565267374796c653d666c61742d737175617265)](https://packagist.org/packages/allanvb/laravel-walletone) [![License](https://camo.githubusercontent.com/9c6d996300134aee84b1faeff66219f67357df084b12a986448e1ac62cee2b1e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f616c6c616e76622f6c61726176656c2d77616c6c65746f6e653f636f6c6f723d627269676874677265656e267374796c653d666c61742d737175617265)](https://packagist.org/packages/allanvb/laravel-walletone)

Package that integrates [WalletOne](https://www.walletone.com/) API into your Laravel app.

Install
-------

[](#install)

Via Composer

```
$ composer require allanvb/laravel-walletone
```

If you're using Laravel 5.5 or above, the package will automatically register provider and facade.

#### Laravel 5.4 and below

[](#laravel-54-and-below)

Add `Allanvb\LaravelWalletOne\Providers\WalletoneServiceProvider` to the `providers` array in your `config/app.php`:

```
'providers' => [
    // Other service providers...

    Allanvb\LaravelWalletOne\Providers\WalletoneServiceProvider::class,
],
```

Add an alias in your `config/app.php`:

```
'aliases' => [
    ...
    'WalletOne' => Allanvb\LaravelWalletOne\Facades\WalletOne::class,
],
```

Or you can `use` the facade class when needed:

```
use Allanvb\LaravelWalletOne\Facades\WalletOne;
```

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

[](#configuration)

You can use `php artisan vendor:publish` to copy the configuration file to your app's config directory:

```
$ php artisan vendor:publish --provider="Allanvb\LaravelWalletOne\Providers\WalletoneServiceProvider" --tag="config"
```

Then update `config/wallet-one.php` with your credentials. Also you can update your `.env` file with the following:

```
WALLETONE_MERCHANT=merchant_id
WALLETONE_SECRET=secret_key
WALLETONE_SIGNATURE=signature_method
WALLETONE_CURRENCY=currency
WALLETONE_SUCCESS=success_url
WALLETONE_FAIL=fail_url
```

Usage:
------

[](#usage)

To use the WalletOne Library you can access the facade, or request the instance from the service container:

```
WalletOne::make($orderID, $amount, $description, $options);
```

Or

```
app('walletone')->make($orderID, $amount, $description, $options);
```

Parameters:

- `$orderID` - (string) ID of user order on your e-commerce **(required)**.
- `$amount` - (float) Amount of money the user has to pay **(required)**.
- `$description` - (string) Payment description **(required)**.
- `$options` - (array) Any other options you want to save on WalletOne service, or get back in response.

In order to create payment form for user, you have to get all post params by using `getParams()` method.

```
$params = WalletOne::getParams();

```

Then send this params to your view and create form.

As form action use `WalletOne::API_URL`.

In order to get response from WalletOne service, you have to define a `post` route inside your `web.php`. This route should use `\Allanvb\LaravelWalletOne\Http\Middleware\WalletonePay::class` middleware.

You can add this middleware to your `Kernel.php` inside `App\Http` folder.

```
    protected $routeMiddleware = [
        // Other service providers...

        'walletone-payment' => \Allanvb\LaravelWalletOne\Http\Middleware\WalletonePay::class
    ];
```

Then you can use it as following:

```
Route::post('/payment-webhook', 'YourController')->middleware('walletone-payment');
```

**NOTE:**

- Your controller should return `WalletOne::response()` method !
- Don't forget to add your route into `$except` param of `VerifyCsrfToken` middleware !

Each request to your route will generate a `SuccessPayment` or `FailedPayment` event, so all you have to do is to define a event listener for each of them.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

This package is actually a continuity of [pdazcom/laravel-walletone](https://github.com/pdazcom/laravel-walletone) whose author is [Konstantin A.](https://github.com/pdazcom)

License
-------

[](#license)

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

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Every ~4 days

Total

3

Last Release

2069d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8ebd148e67fc89e01df6c727b65db92ddf77fa3a14f8963e830ce5fb96a76b88?d=identicon)[alanvb](/maintainers/alanvb)

---

Top Contributors

[![allanvb](https://avatars.githubusercontent.com/u/53047487?v=4)](https://github.com/allanvb "allanvb (5 commits)")

### Embed Badge

![Health badge](/badges/allanvb-laravel-walletone/health.svg)

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

###  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)
