PHPackages                             riwash/khalti - 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. riwash/khalti

ActiveLibrary[Payment Processing](/categories/payments)

riwash/khalti
=============

This package allow you to integrate Khalti v2 payment in your website

v1.0.0(2y ago)031MITPHP

Since Feb 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/riwash/Riwash-Khalti-V2-Payment-gateway-Laravel-Package)[ Packagist](https://packagist.org/packages/riwash/khalti)[ RSS](/packages/riwash-khalti/feed)WikiDiscussions dev Synced today

READMEChangelog (1)DependenciesVersions (3)Used By (0)

This is Riwash Khalti V2 Payment Integration Package For Laravel
================================================================

[](#this-is-riwash-khalti-v2-payment-integration-package-for-laravel)

This package allow you to use Khalti v2 for payment gateway
-----------------------------------------------------------

[](#this-package-allow-you-to-use-khalti-v2-for-payment-gateway)

**Note:Deffine this thing in env file**

- KHALTI\_ACCESS\_TYPE = Live \*\* select one Live or Test \*\*
- KHALTI\_MERCHANT\_ID = your secret key
- KHALTI\_SUCCESS\_URL = after payment success call back url
- KHALTI\_FAIL\_URL = if payment is failed call back url
- RETURN\_URL = if payment cancle

**After That**

### Make Controller

[](#make-controller)

use Riwash\\Khalti\\RiwashKhalti;

```

 public function khalti()
    {
        $payment = new RiwashKhalti;
        $data = [
            'amount' => '1000',
            'purchase_order_id' => 'Order01',
            'purchase_order_name' => 'test',
            'customer_info' => [
                'name' => 'Riwash',
                'email' => 'riwash@khalti.com',
                'phone' => '9800000001',
            ]
        ];
        return $payment->khaltiCheckout($data);

    }

    public function success(Request $request)
    {
        //write your after payment success  code here
        dd($request->all());
    }

    public function fail(Request $request)
    {
        // write if payment failed response here
        dd($request->all());

    }

```

This much **If you get any issue or bug then create issue from here **

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

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

Unknown

Total

1

Last Release

872d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f76ba26fdea4d3b2980221dec18306aa528c2223bb8ba6e2588e6de5e1bd6737?d=identicon)[Riwash Chamlagain](/maintainers/Riwash%20Chamlagain)

---

Top Contributors

[![riwash](https://avatars.githubusercontent.com/u/48515504?v=4)](https://github.com/riwash "riwash (3 commits)")

---

Tags

laravelintegrationpayment gatewaynepali payment gatewayKalti

### Embed Badge

![Health badge](/badges/riwash-khalti/health.svg)

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

###  Alternatives

[luigel/laravel-paymongo

A laravel wrapper for Paymongo API

7963.7k1](/packages/luigel-laravel-paymongo)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

882.2k1](/packages/musahmusah-laravel-multipayment-gateways)[a17mad/laravel-cybersource

This package wraps the Cybersource SOAP API in a convenient, easy to use package for Laravel.

137.1k](/packages/a17mad-laravel-cybersource)

PHPackages © 2026

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