PHPackages                             sudiptpa/esewa-payment - 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. sudiptpa/esewa-payment

ActiveLibrary[Payment Processing](/categories/payments)

sudiptpa/esewa-payment
======================

Framework-agnostic eSewa ePay v2 payment SDK for PHP.

v3.0.0(2mo ago)613MITPHPPHP &gt;=8.1 &lt;8.6CI passing

Since Mar 16Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/sudiptpa/esewa)[ Packagist](https://packagist.org/packages/sudiptpa/esewa-payment)[ RSS](/packages/sudiptpa-esewa-payment/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (9)Versions (6)Used By (0)

EsewaPayment PHP SDK
====================

[](#esewapayment-php-sdk)

Framework-agnostic eSewa ePay v2 SDK for modern PHP applications.

[![CI](https://github.com/sudiptpa/esewa/actions/workflows/ci.yml/badge.svg)](https://github.com/sudiptpa/esewa/actions/workflows/ci.yml)[![Latest Release](https://camo.githubusercontent.com/ae0971df33af8c02171626befabc1ae55cd7175b0856869d5619d980688e1f22/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f73756469707470612f65736577613f736f72743d73656d766572)](https://github.com/sudiptpa/esewa/releases)[![GitHub Downloads](https://camo.githubusercontent.com/489ae9013e9c4cb3d641153ede16b1611e9730880f9d18ada23a0510066b2cb9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f73756469707470612f65736577612f746f74616c)](https://github.com/sudiptpa/esewa/releases)[![PHP Version](https://camo.githubusercontent.com/26f2b3ac7b07256cad4c56ea4326d3be584203eb880d7477153b94ce06c3be02/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e312d2d382e352d3737376262342e737667)](https://www.php.net/)[![Packagist](https://camo.githubusercontent.com/a12d1508341f38689e18ac999c996af38d2fe9bf07230140606d1bf91deb2760/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d737564697074706125324665736577612d2d7061796d656e742d6632386431612e737667)](https://packagist.org/packages/sudiptpa/esewa-payment)[![License](https://camo.githubusercontent.com/893d083c87dd79befbfd1e43b205abcfc12e2d8000a35cd64e289b703500c09c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73756469707470612f6573657761)](LICENSE)

Highlights
----------

[](#highlights)

- ePay v2 checkout intent generation (`/v2/form`)
- HMAC-SHA256 + base64 signature generation and verification
- Callback verification with anti-fraud field consistency checks
- Status check API support with typed status mapping
- Model-first request/payload/result objects
- PSR-18 transport integration
- PHP `8.1` to `8.5` support
- PHPUnit + PHPStan + CI matrix

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Quick Start](#quick-start)
- [Core API Shape](#core-api-shape)
- [Checkout Flow](#checkout-flow)
- [Callback Verification Flow](#callback-verification-flow)
- [Transaction Status Flow](#transaction-status-flow)
- [Configuration Patterns](#configuration-patterns)
- [Production Hardening](#production-hardening)
- [Laravel Integration (Secure)](#laravel-integration-secure)
- [Custom Transport and Testing](#custom-transport-and-testing)
- [Error Handling](#error-handling)
- [Development](#development)

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

[](#installation)

```
composer require sudiptpa/esewa-payment
```

For PSR-18 usage examples:

```
composer require symfony/http-client nyholm/psr7
```

Quick Start
-----------

[](#quick-start)

```
