PHPackages                             projovi/proesewa - 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. projovi/proesewa

ActiveLibrary[Payment Processing](/categories/payments)

projovi/proesewa
================

Pro Esewa - A simple laravel package to integrate esewa payment.

02PHP

Since Jul 4Pushed 2y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Esewa
=============

[](#laravel-esewa)

This Laravel package allows you to create payment using Esewa.

Usage/Examples
--------------

[](#usageexamples)

### Install Using Composer

[](#install-using-composer)

```
composer require projovi/proesewa
```

### Add One Variable in .env

[](#add-one-variable-in-env)

You can get marchant id from Esewa

```
ESEWA_MERCHANT_ID="Esewa Merchant Id"
ESEWA_ENV = "Sandbox" or "Live"

```

### Publish Vendor File

[](#publish-vendor-file)

```
php artisan vendor:publish --provider="Projovi\ProEsewa\EsewaServiceProvider"

```

or

```
php artisan vendor:publish

```

And publish "Projovi\\ProEsewa\\EsewaServiceProvider"

Redirect the user to payment page from your controller

```
use Projovi\ProEsewa\ProEsewa;

//Your Controller Method
public function esewaPayment()
{
    //Store payment details in DB with pending status
    $payment = new ProEsewa();
    $amount = 123;
    $order_id = 251264889; //Your Unique Order Id
    $tax_amount = 0; //Tax Amount. If there is not tax amount then keep it 0
    $service_charge = 0; // Serivce Charge. If there is no service charge then keep it 0
    $delivery_charge = 0; // Delivery Charge. If there is no delivery charge then keep it 0.
    $su = route('success.url);
    $fu = route('fail.url);
    return redirect($payment->esewaCheckout($amount,$tax_amount,$service_charge,$delivery_charge,$order_id,$su,$fu))
}

```

After Successfull Payment esewa will redirect the user to your success url and you can change the payment status to Success else you can change the status to Fail when esewa redirect user to fail url.

Success Payment Case

```
public function esewaSuccess(Request $request)
{
    $order_id = $request->oid;
    $payment = Payment::where('order_id', $order_id)->first();
    $payment->status = "Success";
    $payment->save();

    //Other Tasks

}

```

Fail Payment Case

```
public function esewaFail(Request $request)
{
    $payment = Payment::where('order_id', $request->oid)->first();
    $payment->status = "Fail";
    $payment->save();
    //Other Tasks
}

```

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

Author
------

[](#author)

- [@Projovi](https://www.github.com/Projovi)

Support
-------

[](#support)

For support, email .

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![projovi](https://avatars.githubusercontent.com/u/28531294?v=4)](https://github.com/projovi "projovi (1 commits)")

### Embed Badge

![Health badge](/badges/projovi-proesewa/health.svg)

```
[![Health](https://phpackages.com/badges/projovi-proesewa/health.svg)](https://phpackages.com/packages/projovi-proesewa)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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