PHPackages                             kingsley/voguepay-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. kingsley/voguepay-laravel

ActiveLibrary[Payment Processing](/categories/payments)

kingsley/voguepay-laravel
=========================

A Laravel 5 Package for VoguePay

1.1.0(6y ago)2612MITPHPPHP ^5.4.0|^7.2

Since Jul 18Pushed 6y ago3 watchersCompare

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

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

voguepay-laravel
================

[](#voguepay-laravel)

> A laravel 5 Package for Voguepay

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

[](#installation)

[PHP](https://php.net) 5.4+ or [HHVM](http://hhvm.com) 3.3+, and [Composer](https://getcomposer.org) are required.

To get the latest version

```
composer require kingsley/voguepay-laravel
```

Once Voguepay Laravel is installed, you need to register the service provider. Open up config/app.php and add the following to the `providers`.

> If you use Laravel &gt;= 5.5 you can skip this step and go to Configuration

- Kingsley\\Voguepay\\VoguepayServiceProvider::class

Also register the facade

```
'aliases' => [
    ...
    'Voguepay' => Kingsley\Voguepay\Facades\Voguepay::class,
    ...
]
```

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

[](#configuration)

You can publish your facade using this command directly

```
php artisan vendor:publish --provider="Kingsley\Voguepay\VoguepayServiceProvider"
```

A configuration-file named voguepay.php with some sensible defaults will be placed in your config directory:

```
 getenv('VOGUEPAY_V_MERCHANT_ID'),
     /**
      * Currency From Voguepay Dashboard
      * Required
      */
     'cur' => getenv('VOGUEPAY_CURRENCY'),
     /**
      * Developer Code From Voguepay Dashboard
      * Optional
      */
     'developer_code' => getenv('VOGUEPAY_DEVELOPER_CODE'),
     /**
      * Voguepay Payment URL
      * Required
      */
     'paymentUrl' => getenv('VOGUEPAY_PAYMENT_URL'),
     /**
      * Optional notification Url From Merchant Voguepay Settings
      *
      */
     'notify_url' => getenv('VOGUEPAY_NOTIFY_URL'),
     /**
      * Optional success Url From Merchant Voguepay Settings
      *
      */
     'success_url' => getenv('VOGUEPAY_SUCCESS_URL'),
     /**
      * Optional failed Url From Merchant Voguepay Settings
      *
      */
     'fail_url' => getenv('VOGUEPAY_FAIL_URL'),
 ];
?>
```

Usage
-----

[](#usage)

Open your .env file and place this config settings

```
    VOGUEPAY_V_MERCHANT_ID=xxxxxxxxxx
    VOGUEPAY_CURRENCY=xxxxxxxx
    VOGUEPAY_DEVELOPER_CODE=xxxxxxxx
    VOGUEPAY_PAYMENT_URL=xxxxxxxx
    VOGUEPAY_NOTIFY_URL=xxxxxxxx
    VOGUEPAY_SUCCESS_URL=xxxxxxxxxx
    VOGUEPAY_FAIL_URL=xxxxxxxxxx
```

Lets take a look at some sample codes below

##### Create a Route Pay

[](#create-a-route-pay)

```
Route::post('/pay', 'PaymentController@redirectToGateway')->name('pay');
```

##### Create a Controller PaymentController

[](#create-a-controller-paymentcontroller)

```
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Voguepay;
class PaymentController extends Controller
{
public function redirectToGateway(){
$transactionData['v_merchant_id'] = Config::get('voguepay.v_merchant_id');
$transactionData['cur'] = config('voguepay.cur');
$transactionData['paymentUrl'] = config('voguepay.paymentUrl');
$transactionData['merchant_ref'] = uniqid(6, true);
$transactionData['memo'] = "Sample Voguepay form";
$transactionData['item_1'] = "Domain name";
$transactionData['description_1'] = "Sample Domain purchase";
$transactionData['price_1'] = 3000;
$transactionData['item_2'] = "Domain name";
$transactionData['description_2'] = "Sample Domain purchase";
$transactionData['price_2'] = 5000;
$transactionData['developer_code'] = config('voguepay.developer_code');
$transactionData['memo'] = "Sample Voguepay form"
$transactionData['store_id'] = 25;
$transactionData['total'] = 8000;
$transactionData['name'] = "Tofunmi Falade";
$transactionData['address'] = "Oluyole bodija";
$transactionData['phone'] = "08054327653";
$transactionData['email'] = "tfuckvoguepay@nomail.com"
$transactionData['notify_url'] = config('voguepay.notify_url');
$transactionData['fail_url'] = config('voguepay.fail_url');
$transactionData['success_url'] = config('voguepay.success_url');
$voguepay = Voguepay::payButton($transactionData, $class = '', $buttonTitle = 'Pay Now', 'make_payment_blue.png');
return view('voguepay', compact('voguepay'));
}
}
?>

```

Contribution
------------

[](#contribution)

Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.

Appreciation
------------

[](#appreciation)

I want to urge you to please star my repo and contribute to the payment community at large

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

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 ~324 days

Total

2

Last Release

2531d ago

PHP version history (2 changes)1.0PHP ^5.4.0|^7.0

1.1.0PHP ^5.4.0|^7.2

### Community

Maintainers

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

---

Top Contributors

[![kingsleyudenewu](https://avatars.githubusercontent.com/u/8123837?v=4)](https://github.com/kingsleyudenewu "kingsleyudenewu (23 commits)")

---

Tags

phplaravelgithubpaymentslaravel 5subscriptionvoguepayopen-sourcevoguepay.com

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kingsley-voguepay-laravel/health.svg)

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

###  Alternatives

[unicodeveloper/laravel-paystack

A Laravel Package for Paystack

650975.6k11](/packages/unicodeveloper-laravel-paystack)[kingflamez/laravelrave

A Laravel Package for Flutterwave Rave

151286.1k4](/packages/kingflamez-laravelrave)

PHPackages © 2026

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