PHPackages                             hen8y/laravel-vpay - 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. hen8y/laravel-vpay

ActiveLibrary[Payment Processing](/categories/payments)

hen8y/laravel-vpay
==================

laravel 8, 9, 10, 11 package for Vpay

v1.4.1(11mo ago)474MITPHPPHP ~8.0

Since Nov 21Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/hen8y/laravel-vpay)[ Packagist](https://packagist.org/packages/hen8y/laravel-vpay)[ RSS](/packages/hen8y-laravel-vpay/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

laravel-vpay
============

[](#laravel-vpay)

[![downloads](https://camo.githubusercontent.com/67e4757d085557711dbef2a6e7ca195035f1b7d91ffa2d3c70162a0059aafcd3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f68656e38792f6c61726176656c2d767061792e737667)](https://camo.githubusercontent.com/67e4757d085557711dbef2a6e7ca195035f1b7d91ffa2d3c70162a0059aafcd3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f68656e38792f6c61726176656c2d767061792e737667)

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

[](#installation)

[PHP](https://php.net) 7.2, [LARAVEL](https://laravel.com), and [Composer](https://getcomposer.org) are required.

To get the latest version of Laravel Vpay, simply require it

```
composer require hen8y/laravel-vpay
```

Or add the following line to the require block of your `composer.json` file.

```
"hen8y/laravel-vpay": "1.*"
```

You'll then need to run `composer install` or `composer update` to download it and have the autoloader updated.

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

```
'providers' => [
    ...
    Hen8y\Vpay\VpayServiceProvider::class,
    ...
]
```

You can publish the configuration file and assets by running:

```
    php artisan vendor:publish --tag=vpay-config
```

Important
---------

[](#important)

The url below is for your vpay webhook, don't include it as part of your routes. Callbacks are not as efficient as webhooks, so we've crafted this package to use webhooks mainly but you can opt for the callback option

```
   /payment/webhook/vpay
```

Visit Vpay dashboard and add `https://yoursite.com/payment/webhook/pay` as your webhook url in the settings

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

[](#configuration)

If you want to use the webhook make sure to publish the job file:

```
php artisan vpay:publish
```

### A file would be created

[](#a-file-would-be-created)

- Job-file named `VpayJob.php` in the `Jobs` directory

### Details of the Config file

[](#details-of-the-config-file)

The configuration-file named `vpay.php` with some defaults that was placed in your `config` directory:

```
