Laravel Esewa

Alternatives To Laravel Esewa
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Invoiceninja6,990
7 hours ago269April 07, 2021830otherPHP
Invoices, Expenses and Tasks built with Laravel, Flutter and React
Crater6,913
6 hours ago30March 06, 2022373agpl-3.0PHP
Open Source Invoicing Solution for Individuals & Businesses
Akaunting6,109
8 hours ago139August 10, 202228gpl-3.0PHP
Free and Online Accounting Software
Laravel Pay96817722 days ago20March 05, 20223mitPHP
可能是我用过的最优雅的 Alipay/WeChat/Unipay 的 laravel 支付扩展包了
Laravel Paypal8603862 days ago95March 12, 20222mitPHP
Laravel plugin for processing payments through PayPal. Can be used separately.
Payment613216 days ago42November 13, 20217mitPHP
simple laravel payment package , supports multiple drivers
Laravel Paystack5243046 days ago9June 11, 202253mitPHP
:credit_card: :package: :moneybag: Laravel 6, 7, 8, 9 and 10 Package for Paystack
Laravel Stripe Webhooks418432 months ago35August 03, 2022mitPHP
Handle Stripe webhooks in a Laravel application
Yaldash396
a month ago5January 26, 202210mitPHP
👻 It's never been easier to build and customize admin panels. Yah! yaldash is a beautifully designed administration panel for Laravel.
Laravel Mollie2911172 months ago41December 06, 20221bsd-2-clausePHP
Mollie API client wrapper for Laravel & Mollie Connect provider for Laravel Socialite
Alternatives To Laravel Esewa
Select To Compare


Alternative Project Comparisons
Readme

Easy Esewa Payment Integration For Your Laravel App

This composer package offers a E-sewa payment gateway setup for your Laravel applications.

Installation

Begin by pulling in the package through Composer.

composer require act360/laravel-esewa

Next, if using Laravel 5, include the service provider within your config/app.php file.

'providers' => [
    Esewa\EsewaServiceProvider::class,
];

Finally, add these variable to .env.

ESEWA_MERCHANT_ID=YOUR_ESEWA_MERCHANT_ID
ESEWA_TRANSACTION_URL=ESEWA_PAYMENT_URL

Usage

Within your Model, make a call to the Billable trait.

namespace App;

use Esewa\Billable;

Class Store extends Model
{
    use Billable;
}

You can use this on controller as:

Class StoreController extends Controller
{
    public function create(Request $request, Store $store)
    {
        $item = $store->create($request->all());
        $payment_details = [
            'tAmt' => 100,
            'amt' => 100,
            'pid' => "PR-01",
            'su' => "YOUR_SUCCESS_URL",
            'fu' => "YOUR_FAILURE_URL"
        ];
        $item->charge($payment_details);
    }

    public function success()
    {
        // Do something here when payment success.
    }

    public function failure()
    {
        // Do something here when payment failure.
    }
}

Done! You'll now be able to use esewa gateway.

Popular Laravel Projects
Popular Payment Projects
Popular Frameworks Categories
Related Searches

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