Download the PHP package karim007/laravel-nagad without Composer
On this page you can find all versions of the php package karim007/laravel-nagad. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download karim007/laravel-nagad
More information about karim007/laravel-nagad
Files in karim007/laravel-nagad
Package laravel-nagad
Short Description This is nagad payment gateway for laravel
License MIT
Informations about the package laravel-nagad
Nagad Payment Gateway for PHP/Laravel Framework
Features
This is a php/laravel wrapper package for Nagad MFS
Requirements
- PHP >=7.4
- Laravel >= 6
Installation
Examples
![]() ![]() ![]() ![]() ![]()
For video tutorial click the image bellow or https://youtu.be/xue4EP5et58
vendor publish (config)
After publish config file setup your credential. you can see this in your config directory nagad.php file
Set .env configuration
Usage
1. create a controller
2. add this routes
3. Create Payment
must be included in your controller
4. Verify Payment
5. Refund Payment
Note: For the refund method, you have to pass two more parameters one is reference no and another reference message
5. success function
6. fail function
Note
-
In live mode integration Note
-
- login nagad panel
-
- got to Mercent management->Marcent integrartion details
-
- On the top of this page you will see Marcent ID use it as your env "NAGAD_MERCHANT_ID"
-
- You will see by default have a titled "Nagad payment gateway server public key" download it or copy and use it as your env "NAGAD_PUBLIC_KEY"
-
- Then below you will see "Generate key (**only for download)" then click on "Key Generate" buttion
-
- after click it will generate 2 keys _pri.pem and _pub.pem download it and keep safe please because envey time it generate new
-
- *_pri.pem generate key use for your env "NAGAD_PRIVATE_KEY"
-
- then got to "Marcent Integration" menu select integration type E-Commerch form drop down
-
- give you callback URL domain_name/nagad/callback [if your callback url is other then use your own callback url]
-
- upload your downloaded *_pub.pem (it is after generate button clicked public key not default showing public key default showing public key you already use your env file on step 4 it is very important don't mitch match it)
-
- then submit after submit you see the callbackurl and pub key
-
- okk your job is done
-
"NAGAD_MERCHANT_NUMBER" is your provide merchant number must be use it in env
-
NB: live mode is not work in local. project must be upload in server. if your server is out of bd like us, singapur etc server. You need to contact with nagad and you need to provide them your server IP and your callback URL then they whitelisted your IP and callback function from their end. after that your payment gateway will be working.
- Thank you have a good day.
Contributions to the Nagad Payment Gateway package are welcome. Please note the following guidelines before submitting your pull request.
- Follow PSR-4 coding standards.
- Read Nagad API documentations first. Please contact with Nagad for their api documentation and sandbox access.
License
This repository is licensed under the MIT License.
Copyright 2022 md abdul karim. We are not affiliated with Nagad and don't give any guarantee.
All versions of laravel-nagad with dependencies
ext-openssl Version *