Esewa

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 https://imrenagi.com/donate
Bitcart301
5 days ago19mitPython
https://bitcartcc.com
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
Readme

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

Installation

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

Purchase

    use Omnipay\Omnipay;
    use Exception;

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

    $gateway->setMerchantCode('epay_payment');
    $gateway->setTestMode(true);

    try {
        $response = $gateway->purchase([
            'amount' => 100,
            'deliveryCharge' => 0,
            'serviceCharge' => 0,
            'taxAmount' => 0,
            'totalAmount' => 100,
            'productCode' => 'ABAC2098',
            'returnUrl' => 'https://merchant.com/payment/1/complete',
            'failedUrl' => 'https://merchant.com/payment/1/failed',
        ])->send();

        if ($response->isRedirect()) {
            $response->redirect();
        }
    } 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');

    $gateway->setMerchantCode('epay_payment');
    $gateway->setTestMode(true);

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

    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.

Contributing

Contributions are welcome and will be fully credited.

Contributions can be made via a Pull Request on Github.

Support

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.

License

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.
Php
Driver
Processing
Payment
Gateway
Payment Gateway