eSewa API driver with Omnipay PHP payment processing library - eSewa-Nepal First Online Payment Gateway
Alternatives To Esewa
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Payment613210 days ago42November 13, 20217mitPHP
simple laravel payment package , supports multiple drivers
Omnipay Alipay553172212 years ago64May 22, 202018mitPHP
Alipay driver for the Omnipay PHP payment processing library
Payment Gateway485
2 months agomitCSS
Bitcoin/Altcoins PHP Payment Class. It supports Bitcoin BitcoinCash DASH Dogecoin Litecoin Reddcoin Feathercoin Vertcoin Potcoin Speedcoin. Install GoUrl php script - bitcoin api payment gateway on your site!
Gringotts44231a month ago6October 17, 201837mitElixir
A complete payment library for Elixir and Phoenix Framework
Paynode3462547 years ago7January 25, 20129JavaScript
Mega library that includes various loadable modules for interacting with different payment gateways
React Paystack3231673 months ago16August 06, 202220mitTypeScript
ReactJS library for implementing paystack payment gateway
Go Payment304
a month ago14March 19, 20228mitGo
Payment Connector for Midtrans and Xendit. Sample site that is using this payment proxy is
5 days ago19mitPython
Omnipay Wechatpay29128143 years ago35November 30, 201914mitPHP
(微信支付)WeChatPay driver for the Omnipay PHP payment processing library
Parbad284173 months ago53February 03, 20229lgpl-3.0C#
A free, open-source, integrated and extensible library which connects your web applications to online payment gateways. Gateways can be added or developed by you.
Alternatives To Esewa
Select To Compare

Alternative Project Comparisons

Omnipay: eSewa

eSewa driver for the Omnipay PHP payment processing library

Omnipay is a framework agnostic, multi-gateway payment processing library for PHP. This package implements eSewa support for Omnipay.

StyleCI Build Status Latest Stable Version Total Downloads GitHub license


Omnipay is installed via Composer. To install, simply require league/omnipay and sudiptpa/omnipay-esewa with Composer:

composer require league/omnipay sudiptpa/omnipay-esewa

Basic Usage


    use Omnipay\Omnipay;
    use Exception;

    $gateway = Omnipay::create('Esewa_Secure');


    try {
        $response = $gateway->purchase([
            'amount' => 100,
            'deliveryCharge' => 0,
            'serviceCharge' => 0,
            'taxAmount' => 0,
            'totalAmount' => 100,
            'productCode' => 'ABAC2098',
            'returnUrl' => '',
            'failedUrl' => '',

        if ($response->isRedirect()) {
    } catch (Exception $e) {
        return $e->getMessage();

After successful payment and redirect back to merchant site, you need to now verify the payment with another API request.

Verify Payment

    $gateway = Omnipay::create('Esewa_Secure');


    $response = $gateway->verifyPayment([
        'amount' => 100,
        'referenceNumber' => 'GDFG89',
        'productCode' => 'gadfg-gadf',

    if ($response->isSuccessful()) {
        // Success

    // Failed

Laravel Integration

Please follow the eSewa Online Payment Gateway Integration and follow step by step guidlines.

Official Doc

Please follow the Official Doc to understand about the parameters and their descriptions.


Contributions are welcome and will be fully credited.

Contributions can be made via a Pull Request on Github.


If you are having general issues with Omnipay Esewa, drop an email to [email protected] for quick support.

If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request.


This package is open-sourced software licensed under the MIT license.

Popular Gateway Projects
Popular Payment Projects
Popular Networking Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Payment Gateway