Download the PHP package mak8tech/dpo-payments without Composer

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

Mak8Tech DPO Payment Package for Laravel 12

A comprehensive Laravel 12 package for integrating DPO (Direct Pay Online) payment gateway with support for African markets, focusing primarily on Zambia but with configurable support for 15+ African countries.

Features

Supported Countries

Country Currency Mobile Money Recurring
Zambia ZMW Airtel Money, MTN MoMo, Zamtel Kwacha
Kenya KES M-Pesa, Airtel Money
Tanzania TZS M-Pesa, Airtel Money, Tigo Pesa, HaloPesa
Uganda UGX MTN MoMo, Airtel Money
South Africa ZAR Card payments only
Rwanda RWF MTN MoMo, Airtel Money
Nigeria NGN Card payments only
Ghana GHS MTN MoMo, Vodafone Cash, AirtelTigo Money
Zimbabwe USD EcoCash, OneMoney

| And 6+ more countries...

Installation

1. Install via Composer

2. Publish Configuration

3. Configure Environment Variables

Add to your .env file:

4. Run Migrations

5. (Optional) Publish Assets

For Blade views:

For React components:

Quick Start

Creating a Payment

Creating a Subscription

Handling Callbacks

The package automatically handles callbacks at /dpo/callback. You can listen to events:

Blade Components

Payment Form Component

Transaction Table Component

Subscription Manager Component

React Components for Next.js

Installation in Next.js

  1. Copy the React components to your Next.js project:

  2. Install required dependencies:

Usage in Next.js

API Endpoints

Payments

Subscriptions

Utility

Admin Dashboard

Access the admin dashboard at /dpo/admin (requires authentication).

Features:

Artisan Commands

Check DPO Status

Process Due Subscriptions

Set up a cron job for automatic processing:

Testing

Running Tests

Test Mode

Enable test mode in your .env:

This will use DPO's sandbox environment for testing.

Advanced Usage

Custom Payment Flow

Multi-Currency Operations

Webhook Security

The package automatically validates webhook callbacks. You can add additional IP whitelisting:

Troubleshooting

Common Issues

  1. Token Creation Failed

    • Verify your company token is correct
    • Check if test mode matches your DPO account type
    • Ensure amount is greater than 0
  2. Recurring Payments Not Working

    • Confirm the country supports recurring payments
    • Verify PaySubs is enabled on your DPO account
    • Check subscription start date is in the future
  3. Mobile Money Not Appearing
    • Ensure the selected country supports mobile money
    • Verify mobile money is enabled for your merchant account
    • Check that the currency matches the country

Debug Mode

Enable detailed logging:

Security

Support

For issues and questions:

License

This package is open-sourced software licensed under the MIT license.

Credits

Changelog

v0.0.1 (2025-10-05)


All versions of dpo-payments with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
laravel/framework Version ^12.0
guzzlehttp/guzzle Version ^7.10
nesbot/carbon Version ^3.10
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 mak8tech/dpo-payments contains the following files

Loading the files please wait ...