Download the PHP package dnsoft/mservice-payment without Composer

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

MoMo - Payment Platform

Library package to integrate MoMo E-Wallet as payment method

Prerequisites

For development purposes, we use phpunit/phpunit for testing.

Please check the composer.json file for detailed information on libraries for development as well as suggested packages

Installing

Make sure you have the correct PHP version and Composer installed. Then you can add the package from the command line:

Or you can add directly to the composer.json file and then run the command composer update:

Please remember to run composer dump-autoload -o to make sure the autolaod works properly.

Documention

https://developers.momo.vn

Usage

Setting Up MoMo Environment

MoMo provides 2 environments for integration: development() and production(). The model for environment is located at

Example configuration is provided in and sample code on how to set up your environment can be found in file. Please create your own .env file and then copy contents from .env.example to that file (or make any necessary changes). Please note that selectEnvironment() is just a sample code and NOT part of the actual library.

By default, log is turned off. But you can use MoMoLogger by setting the $loggingOff property to false during environment setup.

Integration

The library provides functions to conduct transactions through the All-In-One (AIO) Payment Gateway () and all other Payment () options (App-In-App, POS, Dynamic QR Code)

For each payment options, you can choose to either use the provided code in folder to immediately use MoMo services or extend from the models located in Models folder. To have a better sense of how the processors work, we recommend uncommented and run the code in and

For Pay.php, please ensure that the URI you are calling to is correct for the processes you are trying to run accoring to MoMo's documentation.

Running The Tests

Install phpunit/phpunit library to the downloaded project:

From the terminal, with Composer:

Or you can directly add to , and then update the composer:

In the PhpStorm Preferences window, go to Languages & Framework / PHP / Test Frameworks choose use Composer autoload to load your local PhpUnit library.
Do remember to run the composer dump-autoload -o command first to ensure proper run of Composer's autoload. Run the tests with phpunit command. For example, you can run the CaptureMoMoTest.php by using the command:

Or to run all available tests

Acknowledgments

Security Aalgorithms

More

Languages

Versioning

Authors

License

(c) MoMo

Support

If you have any issues when integrate MoMo API, please find out in F.A.Q or Exception handling section in our documention

=======


All versions of mservice-payment with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
phpseclib/phpseclib Version ^2
monolog/monolog Version *
bramus/monolog-colored-line-formatter Version ^3.0
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 dnsoft/mservice-payment contains the following files

Loading the files please wait ....