Download the PHP package zerkxubas/esewa-laravel without Composer
On this page you can find all versions of the php package zerkxubas/esewa-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package esewa-laravel
Esewa package for Laravel
This package is for Laravel Framework making super easy for developers to integrate the eSewa payments into Laravel Application and use instantly. For more details read Official eSewa Documentation.
Installation
Install this Package – Using Composer.
Composer Installation
Sail Installation
Publishing The Configurations
This will publish esewa.php inside the config directory of your laravel project.
.env Settings [ Development Mode ]
inside the .env file use these below config values for quick setup. For, Production Mode ensuure you set ESEWA_DEBUG_MODE=false & use The Production ESEWA_API_URL and also the ESEWA_MERCHAND_CODE in .env file
NOTE: i prefer to use the Sail environment for development so the url seems to be without any port here in my .env but you can specify any url which works for you.
Quick Examples
Easily Create an eSewa Portal Payment Checkout
In this method i have made it super simpler & easier to implement & use instantly in laravel projects. Use like the below example code inside your controller and this will take the user to the esewa payment portal.
Dont Forget To Create The Success & Failure Route
Parameters
pid
=>paymentID
amt
=>totalAmount
txAmt
=>taxAmount
psc
=>serviceCharge
pdc
=>deliveryCharge
Testing Credentials
Default credentials provided by esewa for testing or development purpose.
eSewa ID: 9806800001/2/3/4/5
Password: Nepal@123
Token: 123456
Verify Payment
To verify our payments status this is super simpler & easier just use like this and you are good to go.
License
This package is open-sourced & free to use licensed under the MIT license.
Additional
Reading esewa official documentation is highly recommended as there might be new changes in future so its crucial for a developer to be updated with the latest changes.
All versions of esewa-laravel with dependencies
ext-curl Version *
ext-simplexml Version *