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

ActiveLibrary[Payment Processing](/categories/payments)

sudiptpa/omnipay-esewa
======================

Framework-agnostic eSewa ePay v2 payment SDK for PHP.

v3.0.1(2mo ago)73.9k3MITPHPPHP &gt;=8.2 &lt;8.6CI passing

Since Mar 16Pushed 2mo ago1 watchersCompare

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

READMEChangelog (4)Dependencies (16)Versions (7)Used By (0)

eSewa PHP SDK
=============

[](#esewa-php-sdk)

Framework-agnostic, zero-dependency PHP SDK for eSewa ePay v2, with an optional Omnipay v3 bridge.

[![CI](https://github.com/sudiptpa/esewa-sdk-php/actions/workflows/ci.yml/badge.svg)](https://github.com/sudiptpa/esewa-sdk-php/actions/workflows/ci.yml)[![Latest Release](https://camo.githubusercontent.com/3945d8fe16e6e4747031a9d2fa9ddb6dab9a4f4d47d6ea4bfb0d5324b37bb9dd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f73756469707470612f65736577612d73646b2d7068703f736f72743d73656d766572)](https://github.com/sudiptpa/esewa-sdk-php/releases)[![Packagist Version](https://camo.githubusercontent.com/f2f5f7856f7411ff4384da8dbe347651b73d1961e44a1be763cd8b02a59f96e1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73756469707470612f6f6d6e697061792d6573657761)](https://packagist.org/packages/sudiptpa/omnipay-esewa)[![Packagist Downloads](https://camo.githubusercontent.com/2831c4379f0d735890c62f567263bacd575d44fc6f6a27a8c1d84d41131f72e3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73756469707470612f6f6d6e697061792d6573657761)](https://packagist.org/packages/sudiptpa/omnipay-esewa)[![PHP Version](https://camo.githubusercontent.com/1aa7939e7a27a6dfba78b11869a5918ecc8c2da1876f0122727733776e3fff4c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e322d2d382e352d3737376262342e737667)](https://www.php.net/)[![License](https://camo.githubusercontent.com/f098702a45d50f8aa56b32ef1050539262b0237ecf878660c4cc5c154c7627c8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73756469707470612f65736577612d73646b2d706870)](LICENSE)

Public API
----------

[](#public-api)

This package exposes two public namespaces:

- `Sujip\\Esewa`
- `Omnipay\\Esewa`

Highlights
----------

[](#highlights)

- checkout, callback, and transaction flows built around request and result models
- typed value objects for amount, transaction UUID, product code, and reference ID
- `toArray()` and `fromArray()` where they are useful
- callback verification with explicit states: `verified`, `invalid_signature`, `replayed`
- zero-dependency core with built-in `CurlTransport`
- configurable retry policy and clock handling
- replay protection backed by filesystem or PDO storage
- optional PSR-18 transport support
- optional Omnipay v3 bridge
- PHP `8.2` to `8.5`

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

[](#installation)

```
composer require sudiptpa/omnipay-esewa
```

Optional PSR-18 usage:

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

Documentation
-------------

[](#documentation)

- [User Guide](docs/user-guide.md)
- [Migration Guide](docs/migration-guide.md)
- [Architecture](ARCHITECTURE.md)

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

[](#quick-start)

```
