Download the PHP package aqshah20/mezpay without Composer

On this page you can find all versions of the php package aqshah20/mezpay. 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 mezpay

MezPay: A Laravel Payment Gateway Package for Meezan Bank

License

Introduction

MezPay is a seamless Laravel payment gateway package that empowers secure Meezan Bank payment processing. It simplifies the integration process with Meezan Bank's E-commerce Payment Gateway, allowing you to perform effortless and secure transactions.

This package is proudly developed by AQ Shah, a full-stack Laravel developer, with a passion for creating efficient and reliable solutions for payment processing in Laravel applications.

How to Set Up

Step 1: Install Package

You can install the MezPay package via Composer. Open your terminal and run the following command:

Step 2: Register MezPay Service Provider

After installing the package, you need to register the MezPay service provider in your Laravel application. Open config/app.php and add the following line to the providers array:

Step 3: Publish Configuration and Migrations:

To publish the configuration and migrations for the MezPay package, run the following Artisan commands in your terminal:

After publishing, you can set your API credentials in the generated configuration file located at config/mezpay.php:

Configuration

You can customize the package by adjusting the following settings in the config/mezpay.php file:

Handling Payment Callbacks

After configuring the MezPay package, you need to create routes to handle the payment success and failure callbacks.

Step 1: Create Routes

In your routes/web.php file, add the following routes to handle the payment success and failure callbacks:

Step 2: Implement Controller Methods

Next, create the OrdersController if you haven't already. In the controller, implement the orderSucceeded and orderFailed methods to process the payment callback responses:

How to Use:

To use MezPay, follow these steps:

Step 1: Import MezPayFacade

Import the MezPayFacade at the top of the controller or model file where you want to use it:

Step 2: Register an Order:

Register an order with the minimum required parameters using the registerOrder method:

Order Registration and Payment

After a user successfully registers an order, they will be redirected to a checkout screen where they can enter their card details to proceed with the payment. An example of this checkout screen can be seen in the following image:

Payment Status Redirection

Upon completing the checkout and submitting their payment details:

Ensure that the redirection routes are correctly set up to provide a seamless and user-friendly payment experience for your users.

How to Get Order Status:

To obtain the order status, simply call the getOrderStatus(152) method with the orderId as a parameter.

After making the call, you will receive the result as an array, similar to the following:

License

This MezPay package is open-source software licensed under the MIT License. See the LICENSE file for more information.

Contributions and Feedback

Contributions, issues, and feedback are welcome! If you encounter any problems or have suggestions for improvements, please feel free to create an issue on GitHub

Thank you for choosing MezPay to simplify your integration with Meezan Bank's payment gateway. We hope this package streamlines your payment processing and enhances the security of your transactions. If you have any questions or need further assistance, please don't hesitate to reach out. Happy coding!


All versions of mezpay with dependencies

PHP Build Version
Package Version
No informations.
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 aqshah20/mezpay contains the following files

Loading the files please wait ....