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 yesterday

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

24

—

LowBetter than 31% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

724d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/60098373?v=4)[alimwa](/maintainers/alimwa)[@alimwa](https://github.com/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)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M737](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M203](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k17.8k](/packages/prestashop-prestashop)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[contao/core-bundle

Contao Open Source CMS

1231.6M2.8k](/packages/contao-core-bundle)

PHPackages © 2026

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