Download the PHP package finergy/mia-pos-sdk without Composer

On this page you can find all versions of the php package finergy/mia-pos-sdk. 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 mia-pos-sdk

MIA POS PHP SDK

MIA POS, provided by Finergy Tech, allows secure payment processing using QR codes and direct payment requests.

This SDK allows merchants to integrate with the MIA POS ecommerce payment system. It simplifies the process of registering payments, retrieving payment statuses, and verifying signatures for callbacks. The SDK is designed to be lightweight and compatible with PHP applications.


Requirements

Ensure that these extensions are enabled in your PHP configuration (php.ini).


Installation

Using Composer

  1. Run the following command to add the SDK to your project:

  2. Include the Composer autoloader in your project:

Manual Installation

  1. Download or clone this repository.
  2. Add the src folder to your project directory.
  3. Include the SDK files manually:

Getting Started

Obtaining API Credentials

To use the MIA POS ecommerce system, you must obtain the following credentials from the bank:

All integrations must first be tested on the test environment provided by the bank.


Usage Flow

1. Registering a Payment

When a client chooses to pay via MIA POS on your website, you must register the payment with the MIA POS system.

Example:


2. Handling Payment Failure (failUrl)

When the payment fails, the client will be redirected to the failUrl specified during payment registration. The request parameters will include the same data passed during the payment registration, such as the orderId.

Use the orderId to retrieve the corresponding paymentId from your database, and then use the SDK to check the payment status. Based on the status, display the appropriate message to the client.

Example:


3. Handling Payment Success (successUrl)

When the payment succeeds, the client will be redirected to the successUrl. The request parameters will include the same data passed during the payment registration, such as the orderId.

Use the orderId to retrieve the corresponding paymentId from your database, and then use the SDK to verify the payment status.

Example:


4. Handling Callbacks (callbackUrl)

After the payment is finalized, the MIA POS system will send a signed callback to the callbackUrl. Use the SDK to verify the signature and process the callback data.

Example:


Notes

  1. Always test your integration in the test environment before going live.
  2. Ensure secure storage of your API credentials (merchantId, secretKey) and do not expose them in client-side code.

All versions of mia-pos-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0
ext-curl Version *
ext-json 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 finergy/mia-pos-sdk contains the following files

Loading the files please wait ...