momospay/momospay-php

Php sdk of Momospay - Online payment solution by credit card and mobile money

v1.5-beta.1.0 2023-05-30 09:30 UTC

This package is auto-updated.

Last update: 2024-10-12 16:51:53 UTC


README

The Momospay PHP library provides convenient access to the Momospay API from applications written in the PHP language. It includes a pre-defined set of classes for API resources that initialize themselves dynamically from API responses which makes it compatible with a wide range of versions of the Momospay API.

You can sign up for a Momospay account at https://momospay.com.

Requirements

PHP 5.5 and later.

Composer

You can install the bindings via Composer. Run the following command:

composer require momospay/momospay-php

To use the bindings, use Composer's autoload:

require_once('vendor/autoload.php');

Manual Installation

If you do not wish to use Composer, you can download the latest release. Then, to use the bindings, include the init.php file.

require_once('/path/to/momospay-php/init.php');

Dependencies

The bindings require the following extension in order to work properly:

  • curl, although you can use your own non-cURL client if you prefer
  • json
  • openssl

If you use Composer, these dependencies should be handled automatically. If you install manually, you'll want to make sure that these extensions are available.

Getting Started

Simple usage looks like:

Documentation

Please see https://docs.momospay.com for up-to-date documentation.

Development

Install dependencies:

composer install