PHPackages                             deyjandi/laravel-viva-wallet - 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. [API Development](/categories/api)
4. /
5. deyjandi/laravel-viva-wallet

ActiveLibrary[API Development](/categories/api)

deyjandi/laravel-viva-wallet
============================

Implementation of Viva Wallet's API for laravel projects

v0.9.0(4y ago)2275[1 PRs](https://github.com/pavloskafritsas/laravel-viva-wallet/pulls)MITPHPPHP ^8.1.0

Since Mar 21Pushed 3y ago1 watchersCompare

[ Source](https://github.com/pavloskafritsas/laravel-viva-wallet)[ Packagist](https://packagist.org/packages/deyjandi/laravel-viva-wallet)[ Docs](https://github.com/deyjandi/laravel-viva-wallet)[ GitHub Sponsors](https://github.com/Deyjandi)[ RSS](/packages/deyjandi-laravel-viva-wallet/feed)WikiDiscussions main Synced 1mo ago

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

Viva Wallet's API for Laravel applications
==========================================

[](#viva-wallets-api-for-laravel-applications)

[![PHP Version](https://camo.githubusercontent.com/c22f6888d558e90056bbd958207628f63fa84dcec688ca2e2591a7d1b18a18d9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6465796a616e64692f6c61726176656c2d766976612d77616c6c6574)](https://camo.githubusercontent.com/c22f6888d558e90056bbd958207628f63fa84dcec688ca2e2591a7d1b18a18d9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6465796a616e64692f6c61726176656c2d766976612d77616c6c6574)[![Laravel Version](https://camo.githubusercontent.com/534246aa5458525c9d69d62ba1a6dd96edd766bbd6eeda8fe5640f3136ea7929/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d253345253344382d726564)](https://camo.githubusercontent.com/534246aa5458525c9d69d62ba1a6dd96edd766bbd6eeda8fe5640f3136ea7929/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d253345253344382d726564)[![Latest Version on Packagist](https://camo.githubusercontent.com/f004ae8351a6892c89019dcea583f824c814da574656173691cff22dc773aff2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6465796a616e64692f6c61726176656c2d766976612d77616c6c65742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/deyjandi/laravel-viva-wallet)[![GitHub Workflow Status (with branch)](https://camo.githubusercontent.com/219f34b47a8779ed583f6d60b44b32037bdfd8ec263db32b1be13d2724e6aed5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f4465796a616e64692f6c61726176656c2d766976612d77616c6c65742f72756e2d74657374732e796d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/219f34b47a8779ed583f6d60b44b32037bdfd8ec263db32b1be13d2724e6aed5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f4465796a616e64692f6c61726176656c2d766976612d77616c6c65742f72756e2d74657374732e796d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265)[![GitHub Workflow Status (with branch)](https://camo.githubusercontent.com/5e53beb24518ddeec956c9d4d26b9809cb61a7a47cc6a4776e78fc934b31ad7f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f4465796a616e64692f6c61726176656c2d766976612d77616c6c65742f7068702d63732d66697865722e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/5e53beb24518ddeec956c9d4d26b9809cb61a7a47cc6a4776e78fc934b31ad7f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f4465796a616e64692f6c61726176656c2d766976612d77616c6c65742f7068702d63732d66697865722e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)[![Total Downloads](https://camo.githubusercontent.com/20f0827ea2cb0770d333dadd0956469fae2a10c1faebede3c30ccaa859ebe388/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6465796a616e64692f6c61726176656c2d766976612d77616c6c65742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/deyjandi/laravel-viva-wallet)

Installation steps
------------------

[](#installation-steps)

### 1. install the package via composer:

[](#1-install-the-package-via-composer)

```
composer require deyjandi/laravel-viva-wallet
```

### 2. Publish the `config` file with:

[](#2-publish-the-config-file-with)

```
php artisan vendor:publish --tag="viva-wallet-config"
```

### 3. Add at minimum the following to the `.env` file

[](#3-add-at-minimum-the-following-to-the-env-file)

```
VIVA_WALLET_MERCHANT_ID=
VIVA_WALLET_API_KEY=
VIVA_WALLET_CLIENT_ID=
VIVA_WALLET_CLIENT_SECRET=
```

You can refer to the `./config/viva-wallet-config.php` for additional configuration options

Usage
-----

[](#usage)

### Create a Payment Order using the default configuration:

[](#create-a-payment-order-using-the-default-configuration)

```
...

use Deyjandi\VivaWallet\Facades\VivaWallet;
use Deyjandi\VivaWallet\Payment;

...

$payment = new Payment($amount = 1000);

$checkoutUrl = VivaWallet::createPaymentOrder($payment);

...
```

### Create a Payment Order specifying every configurable option:

[](#create-a-payment-order-specifying-every-configurable-option)

```
...

use Deyjandi\VivaWallet\Enums\RequestLang;
use Deyjandi\VivaWallet\Enums\PaymentMethod;
use Deyjandi\VivaWallet\Facades\VivaWallet;
use Deyjandi\VivaWallet\Customer;
use Deyjandi\VivaWallet\Payment;

...

$customer = new Customer(
    $email = 'example@test.com',
    $fullName = 'John Doe',
    $phone = '+306987654321',
    $countryCode = 'GR',
    $requestLang = RequestLang::Greek,
);

$payment = new Payment();

$payment
    ->setAmount(2500)
    ->setCustomerTrns('short description of the items/services being purchased')
    ->setCustomer($customer)
    ->setPaymentTimeout(3600)
    ->setPreauth(false)
    ->setAllowRecurring(true)
    ->setMaxInstallments(3)
    ->setPaymentNotification(true)
    ->setTipAmount(250)
    ->setDisableExactAmount(false)
    ->setDisableCash(true)
    ->setDisableWallet(false)
    ->setSourceCode(1234)
    ->setMerchantTrns('customer order reference number')
    ->setTags(['tag-1', 'tag-2'])
    ->setBrandColor('009688')
    ->setPreselectedPaymentMethod(PaymentMethod::PayPal);

$checkoutUrl = VivaWallet::createPaymentOrder($payment);

...
```

### Retrieve transaction:

[](#retrieve-transaction)

```
...

use Deyjandi\VivaWallet\Facades\VivaWallet;

...

$transaction = VivaWallet::retrieveTransaction($transactionId);
```

### Request a webhook verification key:

[](#request-a-webhook-verification-key)

```
php artisan viva-wallet:webhook-key
```

#### the webhook verification key is stored to the `.env` file automatically

[](#the-webhook-verification-key-is-stored-to-the-env-file-automatically)

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Pavlos Kafritsas](https://github.com/Deyjandi)

License
-------

[](#license)

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

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80.4% 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 ~9 days

Total

2

Last Release

1503d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0c8acf71e16792533e90b81fcc406154a19cfc6e1852677d5a294b0a2e3ae09f?d=identicon)[Deyjandi](/maintainers/Deyjandi)

---

Top Contributors

[![pavloskafritsas](https://avatars.githubusercontent.com/u/30981857?v=4)](https://github.com/pavloskafritsas "pavloskafritsas (41 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")

---

Tags

laravelDeyjandilaravel-viva-walletviva walletVivaWallet

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/deyjandi-laravel-viva-wallet/health.svg)

```
[![Health](https://phpackages.com/badges/deyjandi-laravel-viva-wallet/health.svg)](https://phpackages.com/packages/deyjandi-laravel-viva-wallet)
```

###  Alternatives

[simplestats-io/laravel-client

Client for SimpleStats!

4515.5k](/packages/simplestats-io-laravel-client)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[njoguamos/laravel-plausible

A laravel package for interacting with plausible analytics api.

208.8k](/packages/njoguamos-laravel-plausible)[ryangjchandler/bearer

Minimalistic token-based authentication for Laravel API endpoints.

8129.8k](/packages/ryangjchandler-bearer)[codebar-ag/laravel-docuware

DocuWare integration with Laravel

1221.1k](/packages/codebar-ag-laravel-docuware)[combindma/laravel-facebook-pixel

Meta pixel integration for Laravel

4956.9k](/packages/combindma-laravel-facebook-pixel)

PHPackages © 2026

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