PHPackages                             taitech/azampay - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. taitech/azampay

ActiveLibrary[Payment Processing](/categories/payments)

taitech/azampay
===============

A Laravel package for integrating your application with AzamPay payment services

1.1.2(8mo ago)220MITPHPPHP ^8.1

Since Dec 3Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/tairocruiz/azampay)[ Packagist](https://packagist.org/packages/taitech/azampay)[ RSS](/packages/taitech-azampay/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (7)Versions (10)Used By (0)

Azampay PHP Integration Package
===============================

[](#azampay-php-integration-package)

A robust PHP package for seamless integration with Azampay payment services, supporting Mobile Money (MNO), Bank, and Merchant payment options.

Features
--------

[](#features)

- Mobile Money (MNO) payments integration
- Bank payments processing
- Merchant services support
- Environment switching (Sandbox/Production)
- Simple credential management
- Flexible service selection
- **Laravel 9.x, 10.x, 11.x, and 12.x support**
- **Automatic service discovery and registration**
- **Built-in facades and dependency injection**
- **Spatie Activity Log integration for database logging**
- **Comprehensive payment event tracking**

Installation
------------

[](#installation)

### Standard Installation

[](#standard-installation)

```
composer require taitech/azampay
```

### Requirements

[](#requirements)

- **PHP**: ^8.1
- **Laravel**: ^9.0|^10.0|^11.0|^12.0
- **GuzzleHTTP**: ^7.5

### Laravel Integration

[](#laravel-integration)

This package is designed to work seamlessly with Laravel applications. For detailed Laravel integration instructions, see [LARAVEL\_INTEGRATION.md](LARAVEL_INTEGRATION.md).

**Quick Laravel Setup:**

1. Install the package: `composer require taitech/azampay`
2. Publish configuration: `php artisan vendor:publish --tag=azampay-config`
3. Add environment variables to your `.env` file
4. Include routes: `require base_path('routes/azampay.php');`

**Laravel Usage Examples:**

```
// Using the Facade
use Taitech\Azampay\Facades\Azampay;
$response = Azampay::checkout($payload);

// Using the Service Container
$azampay = app('azampay');
$response = $azampay->checkout($payload);

// Using Dependency Injection
public function __construct(private AzampayService $azampay) {}
$response = $this->azampay->checkout($payload);
```

Quick Start
-----------

[](#quick-start)

```
use Taitech\Azampay\AzampayService;

// Initialize the service
$azampay = new AzampayService(
    appName: 'YOUR_APP_NAME',
    clientId: 'YOUR_CLIENT_ID',
    secret: 'YOUR_CLIENT_SECRET',
    env: 'SANDBOX', // or 'PRODUCTION'
    service: 'MNO' // or 'BANK' or 'MERCHANT'
);
```

Configuration
-------------

[](#configuration)

The package requires the following configuration parameters:

- appName: Your application name registered with Azampay
- clientId: Your Azampay client ID
- secret: Your Azampay client secret
- env: Environment setting (SANDBOX or PRODUCTION)
- service: Service type (MNO, BANK, or MERCHANT)
-

Service Types
-------------

[](#service-types)

### Mobile Money (MNO)

[](#mobile-money-mno)

```
$azampay = new AzampayService(
    appName: 'YOUR_APP_NAME',
    clientId: 'YOUR_CLIENT_ID',
    secret: 'YOUR_CLIENT_SECRET',
    env: 'SANDBOX', // or 'PRODUCTION'
    service: 'MNO'
);
```

### Bank Payments

[](#bank-payments)

```
$azampay = new AzampayService(
    appName: 'YOUR_APP_NAME',
    clientId: 'YOUR_CLIENT_ID',
    secret: 'YOUR_CLIENT_SECRET',
    env: 'SANDBOX', // or 'PRODUCTION'
    service: 'BANK'
);
```

### Merchant Services

[](#merchant-services)

```
$azampay = new AzampayService(
    appName: 'YOUR_APP_NAME',
    clientId: 'YOUR_CLIENT_ID',
    secret: 'YOUR_CLIENT_SECRET',
    env: 'SANDBOX', // or 'PRODUCTION'
    service: 'MERCHANT'
);
```

Usage
-----

[](#usage)

### Initiate Payment and Checkout

[](#initiate-payment-and-checkout)

```
// vendor credentials
$app = 'YOUR_APP_NAME';
$clientId = 'YOUR_CLIENT_ID';
$secret = 'YOUR_SECRET_KEY';

try {
     $azampay = new AzampayService(
        $app, // App Name
        $clientId, // Client ID
        $secret, // Client Secret
        'SANDBOX', // Environment (SANDBOX/PRODUCTION)
        'MNO', // Service (MNO, BANK, MERCHANT)
    );

    // Example of calling the checkout method for MNO [MOBILE PAYMENT]
    $payload = [
        'amount' => 5000,
        'accountNumber' => '255713295803',
        'provider' => 'Tigo',
        'additionalProperties' => [
                'router' => "Home",
                'mac' => "A6:47:F6:52:38:D5",
            ],
    ];

    $response = $azampay->checkout($payload);

    // Output the final JSON response
    header('Content-Type: application/json');
    echo json_encode($response, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);

} catch (Exception $e) {
    echo "Error: " . $e->getMessage();
}
```

Contributing
------------

[](#contributing)

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/your-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin feature/your-feature`)
5. Create a new Pull Request
6. Ensure your code adheres to the project's coding standards
7. Provide clear and concise commit messages

For more details, please refer to the [CONTRIBUTING](CONTRIBUTING.md) file.

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

Support
-------

[](#support)

For any issues or questions, please open an issue on the GitHub repository.

Changelog
=========

[](#changelog)

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

\[1.1.0\] - 2024-12-19
----------------------

[](#110---2024-12-19)

### Added

[](#added)

- Laravel 12.x compatibility and support
- Enhanced version compatibility across Laravel 9.x, 10.x, 11.x, and 12.x

\[1.0.0\] - 2024-01-01
----------------------

[](#100---2024-01-01)

### Added

[](#added-1)

- Initial release
- Support for Mobile Money (MNO) payments
- Support for Bank payments
- Support for Merchant services
- Environment switching capability
- Flexible service selection

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance61

Regular maintenance activity

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~40 days

Recently: every ~70 days

Total

8

Last Release

250d ago

Major Versions

0.0.1 → 1.02024-12-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/b2113c7230edef88b475c6e441f232f08113c9eb993d7093cff5d64d185115b3?d=identicon)[tairocruiz](/maintainers/tairocruiz)

---

Top Contributors

[![algoetech](https://avatars.githubusercontent.com/u/136216514?v=4)](https://github.com/algoetech "algoetech (15 commits)")

---

Tags

laravelpaymentBankmerchantmobile-moneytanzaniaazampaymno

### Embed Badge

![Health badge](/badges/taitech-azampay/health.svg)

```
[![Health](https://phpackages.com/badges/taitech-azampay/health.svg)](https://phpackages.com/packages/taitech-azampay)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4845.9k](/packages/sebdesign-laravel-viva-payments)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[dena-a/iran-payment

a Laravel package to handle Internet Payment Gateways for Iran Banking System

312.4k1](/packages/dena-a-iran-payment)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[omalizadeh/laravel-multi-payment

A driver-based laravel package for online payments via multiple gateways

491.1k](/packages/omalizadeh-laravel-multi-payment)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
