PHPackages                             lennon-mudenda/omnipay-dpo - 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. lennon-mudenda/omnipay-dpo

ActiveLibrary[Payment Processing](/categories/payments)

lennon-mudenda/omnipay-dpo
==========================

DPO Payments driver for the Omnipay PHP payment processing library

v1.0.0(1y ago)013MITPHPPHP ^8.0

Since Jul 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/lennon-mudenda/omnipay-dpo)[ Packagist](https://packagist.org/packages/lennon-mudenda/omnipay-dpo)[ Docs](https://github.com/lennon-mudenda/omnipay-dpo)[ RSS](/packages/lennon-mudenda-omnipay-dpo/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (8)Versions (3)Used By (0)

Omnipay DPO Payments Gatway
===========================

[](#omnipay-dpo-payments-gatway)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f3be93b08058b56d34b2db8fde6ebc1bea2607fe94e6112a5a131aa9acb9e9a5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c656e6e6f6e2d6d7564656e64612f6f6d6e697061792d64706f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lennon-mudenda/omnipay-dpo)[![Total Downloads](https://camo.githubusercontent.com/c57bc40d1b5157bd9827543e3948eb78939a7a3a5008b0417d6307151016a2f6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c656e6e6f6e2d6d7564656e64612f6f6d6e697061792d64706f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lennon-mudenda/omnipay-dpo)[![GitHub Actions](https://github.com/lennon-mudenda/omnipay-dpo/actions/workflows/main.yml/badge.svg)](https://github.com/lennon-mudenda/omnipay-dpo/actions/workflows/main.yml/badge.svg)

Omnipay is a collection of packages that offer a consistent set interface for the handling of payments online. The packages depend on the [omnipay/common](https://github.com/thephpleague/omnipay-common) package to ensure provision of this interface consistently. DPO had no gateway among the list of currently supported gateways which is the reason why this package was born. The package is geared towards ensuring the community has a DPO Payments gateway among the Omnipay packages and will also give rise to an updated package that extends the features of the [dpo/dpo-pay-common](https://github.com/DPO-Group/DPO-Pay-Common) package which seems to have limited functionality or flexibility considering what most PHP projects may need.

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

[](#installation)

You can install the package via composer:

```
composer require lennon-mudenda/omnipay-dpo
```

Usage
-----

[](#usage)

```
use Omnipay\DPO\Gateway;

// Declare a transaction array here
$paymentData = [
	'testMode' => true, // You would need to switch this to false once your application goes live
	'amount' => 85,
	'paymentCurrency' => 'USD',
	'companyToken' => '', // Pass your DPO company token here.
	'serviceType' => '', // Pass your DPO product service id here.
];

$gateway = new Gateway();

$request = $gateway->purchase(
	$paymentData
);

$response = $request->send();

//  After this you can call methods on the response object.
$response->isRedirect(); // Tells you if the response will redirect us to the DPO Payments page.

$response->isSuccessful(); // Tells you if the DPO request was successful

$response->getMessage(); // Gets the DPO request message

$response->getTransactionReference(); // Gets the DPO transaction message

$response->isCancelled(); // Tells you if the transaction was cancelled or not

```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Lennon Mudenda](https://github.com/lennon-mudenda)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

PHP Package Boilerplate
-----------------------

[](#php-package-boilerplate)

This package was generated using the [PHP Package Boilerplate](https://laravelpackageboilerplate.com) by [Beyond Code](http://beyondco.de/).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Unknown

Total

1

Last Release

673d ago

### Community

Maintainers

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

---

Top Contributors

[![lennon-mudenda](https://avatars.githubusercontent.com/u/19418575?v=4)](https://github.com/lennon-mudenda "lennon-mudenda (25 commits)")

---

Tags

lennon-mudendaomnipay-dpo

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/lennon-mudenda-omnipay-dpo/health.svg)

```
[![Health](https://phpackages.com/badges/lennon-mudenda-omnipay-dpo/health.svg)](https://phpackages.com/packages/lennon-mudenda-omnipay-dpo)
```

PHPackages © 2026

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