Download the PHP package xenon/nagad-api without Composer

On this page you can find all versions of the php package xenon/nagad-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package nagad-api

Nagad api php xenon nagad api

Xenon/NagadApi

Features

Install Using Composer

Example Code

Method-1 : Use for website

Method-2 : Return Redirection url . You can use this according to need

After that use below method for extracting payment response that will return an array

For payment verification use below method. You will then get below json as response.

Payment Verification Response

Maintainer

Contributors

Important Information:

Sandbox Environment

  1. Need sandbox details for sandbox testing. Check your email that you have got from nagad authority
  2. Use sandbox details such as pgpublickey, privatekey, merchant-id for sandbox testing
  3. You need to register a mobile number for sandbox testing. Contact with your account manager for doing this
  4. You should test environment before going to live

Live Environment

  1. Need production details for production final. You will get through email
  2. Your server ip/domain and callback url should be whitelisted before running in production. You can contact with nagad team using mail or other system

Login to your Nagad Merchant Panel

https://auth.mynagad.com:10900/authentication-service-provider-1.0/login

Step 1: In the Merchant Portal, Go to Merchant Integration Details under Merchant Management Menu. You will get the Merchant ID which is your Merchant ID for Integration.

Then, Click on “Key Generate” and Download the Merchant Private Key and Merchant Public Key.

Step 2: __Go to Merchant Integration under Merchant Management Menu. Put your Call Back URL and Upload the Merchant Public Key which you have downloaded in Step 1. Add and Submit!__

Step 3: __Usage Production Details . You have to use public key and private key that you have downloaded!__

  1. If you have any question/query then email me [email protected]
  2. Do Code, Be Crazy

    If you find any kind of issue or bug you are highly encouraged to report. For reporting use issues option

    For can also add pull request. For pull request you should use dev branch. Because our master branch is serving at this moment for usage around community. We dont want to messup

License

MIT


All versions of nagad-api with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0|^8.1|^8.2
ext-curl Version *
ext-json Version *
nesbot/carbon Version ^2.59
ext-openssl Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package xenon/nagad-api contains the following files

Loading the files please wait ....