PHPackages                             razor-informatics/dpo-php - 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. razor-informatics/dpo-php

ActiveLibrary[Payment Processing](/categories/payments)

razor-informatics/dpo-php
=========================

DPO Group Payment gateway PHP SDK. using api payment option. Easily use with API without web or redirects

v0.1.1(3y ago)2114MITPHPPHP &gt;=7.1

Since Jan 18Pushed 3y ago1 watchersCompare

[ Source](https://github.com/razor-informatics/dpo-php)[ Packagist](https://packagist.org/packages/razor-informatics/dpo-php)[ RSS](/packages/razor-informatics-dpo-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

DPO Group ™️ Payment API PHP SDK
================================

[](#dpo-group-tm-payment-api-php-sdk)

[![Build Status](https://camo.githubusercontent.com/dacafb09d4bf062fccb3dc244e5aaff769395d31d2cc8c61c9fee17d1b2ecdf6/68747470733a2f2f7472617669732d63692e6f72672f6a6f656d6363616e6e2f64696c6c696e6765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/joemccann/dillinger)

> DPO Group Payment gateway wrapper. using api payment option Easily use with API without web or redirects

Development Support
-------------------

[](#development-support)

If you need support in development, or you need a development team kindly [contact us](https://razorinformatics.co.ke/contact).

Documentation
-------------

[](#documentation)

To get the depth details of the api check [API docs here](https://docs.dpopay.com/api/index.html).

Install
-------

[](#install)

You can install the PHP SDK via composer or by downloading the source

#### Via Composer

[](#via-composer)

The recommended way to install the SDK is with [Composer](http://getcomposer.org/).

```
composer require razor-informatics/dpo-php
```

### Fetch Account Balance

[](#fetch-account-balance)

```
use RazorInformatics\DPOPhp;

$companyToken  = 'YOUR_COMPANY_TOKEN';

$dpo = new DPOPhp($companyToken);

$results = $dpo->account()->balance('USD')

print_r($results);
```

### Verify Transaction using Transaction Token

[](#verify-transaction-using-transaction-token)

How to verify token

```
use RazorInformatics\DPOPhp;

$companyToken  = 'YOUR_COMPANY_TOKEN';

$dpo = new DPOPhp($companyToken);

$transactionToken = 'TRANSACTION_TOKEN_GIVEN';

$results = $dpo->token()->verify($transactionToken)

print_r($results);
```

### Card Payment

[](#card-payment)

make a direct card payment.

```
use RazorInformatics\DPOPhp;

$companyToken  = 'YOUR_COMPANY_TOKEN';
$serviceType = 5525; //SERVICE TYPE
$paymentAmount = 500;
$reference ="INV-1000";
$cardNumber = 5436886269848367
$cardExpiry = 1224;// format My example 0123 i.e. January 2023
$cardCvv = 123;
$customerFirstName='John';
$customerLastName = 'Doe';
$customerPhone ='';
$customerEmail = '';
$currency = 'USD';
$description = 'Flight booking for 5th January 2032'

$dpo = new DPOPhp($companyToken);

$results = $dpo->payment()->card($reference,$serviceType,$paymentAmount,$cardNumber,$cardExpiry,$cardCvv, $customerFirstName,$customerLastName,$customerPhone,$customerEmail,$currency,$description)

print_r($results);
```

### Mpesa Payment

[](#mpesa-payment)

Make a direct mpesa payment, Currency is in KES (Kenya Shillings). In the results there us the transaction token, use it to verfiy payment went through.

```
use RazorInformatics\DPOPhp;

$companyToken  = 'YOUR_COMPANY_TOKEN';
$serviceType = 5525; //SERVICE TYPE
$reference ="INV-1000";
$paymentAmount = 500;
$customerFirstName='John';
$customerLastName = 'Doe';
$customerPhone = 2547100100100;
$customerEmail = '';
$description = 'Flight booking for 5th January 2032'

$dpo = new DPOPhp($companyToken);

$results = $dpo->payment()->chargeMpesa($reference,$serviceType,$paymentAmount, $customerFirstName,$customerLastName,$customerPhone,$customerEmail,$description)

print_r($results);
```

Remember to verify the transaction code to confirm if payment was successfully.

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 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 ~0 days

Total

2

Last Release

1215d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d65061c6fd176471b3a830ef78354bbc82bfadcf9e4984fa8fd8db9db48745b?d=identicon)[mureithimaina](/maintainers/mureithimaina)

---

Top Contributors

[![mureithimaina](https://avatars.githubusercontent.com/u/13314308?v=4)](https://github.com/mureithimaina "mureithimaina (6 commits)")

---

Tags

cards-paymentdpompesa-paymentspaymentphpmpesa-paymentcards processing

### Embed Badge

![Health badge](/badges/razor-informatics-dpo-php/health.svg)

```
[![Health](https://phpackages.com/badges/razor-informatics-dpo-php/health.svg)](https://phpackages.com/packages/razor-informatics-dpo-php)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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