PHPackages                             tjmugova/laravel-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. tjmugova/laravel-dpo

ActiveLibrary[Payment Processing](/categories/payments)

tjmugova/laravel-dpo
====================

Provides DPO Payment integration for Laravel

1.0.3(3y ago)13211MITPHPPHP &gt;=7.4|^8.0

Since Sep 8Pushed 2y ago2 watchersCompare

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

READMEChangelog (4)Dependencies (6)Versions (5)Used By (0)

[laravel-dpo](https://dpogroup.com/)
====================================

[](#laravel-dpo)

> A laravel package for integrating DPO Payment Gateway API to your application.

Installation 🚥
--------------

[](#installation-traffic_light)

Add the package to your composer.json

```
"require": {
    ...
    "tjmugova/laravel-dpo": "{version}"
},

```

Or just run composer require

```
$ composer require tjmugova/laravel-dpo
```

### Configuration

[](#configuration)

Add your DPO Token, Payment Url, API Url, and Currency `.env`:

```
DPO_API_URL=https://secure.3gdirectpay.com/API/v6/ # always required
DPO_PAYMENT_URL=https://secure.3gdirectpay.com/payv2.php # always required
DPO_TOKEN=57466282-EBD7-4ED5-B699-8659330A6996 # always required
DPO_SERVICE_ID=1234
```

### Advanced configuration

[](#advanced-configuration)

Run `php artisan vendor:publish --provider="Tjmugova\Dpo\DpoProvider"`

```
/config/dpo.php

```

Usage ✅
-------

[](#usage-white_check_mark)

For full documentation, please refer to [DPO Public API Docs](https://directpayonline.atlassian.net/wiki/spaces/API/overview?homepageId=807369)

### Create Token

[](#create-token)

```

use Tjmugova\Dpo\Facades\Dpo;
...
$token=Dpo::token();
$token->addService([
    'serviceType' => 1111,
    'serviceDescription' => 'Invoice',
    'serviceDate' => \Carbon\Carbon::now()->format("Y/m/d h:i"),
]);
$response = $token->createToken([
    'paymentAmount' => 200,
    'customerFirstName' => 'Test',
    'companyRef' => '15',
    'paymentCurrency' => 'USD',
    'redirectURL' => 'https://example.com',
    'backURL' => 'https://example.com',
]);

```

### Redirect After Successfuly Token Request

[](#redirect-after-successfuly-token-request)

```
return redirect($response['RedirectURL']);
```

### Verify Token

[](#verify-token)

You can verify a token received above. The method takes various parameters as specified in the DPO API docs.

```
$token->verifyToken([
    'transToken' => $response['transToken'],

]);
```

---

**`NOTE:`**

If you find any bugs or you have some ideas in mind that would make this better. Please don't hesitate to create a pull request.

If you find this package helpful, a simple star is very much appreciated.

---

**[MIT](LICENSE) LICENSE**

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~3 days

Total

4

Last Release

1333d ago

### Community

Maintainers

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

---

Top Contributors

[![AbdallaMohammed](https://avatars.githubusercontent.com/u/41541325?v=4)](https://github.com/AbdallaMohammed "AbdallaMohammed (1 commits)")[![tjmugova](https://avatars.githubusercontent.com/u/17856131?v=4)](https://github.com/tjmugova "tjmugova (1 commits)")

---

Tags

dpolaravel-dpo

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tjmugova-laravel-dpo/health.svg)

```
[![Health](https://phpackages.com/badges/tjmugova-laravel-dpo/health.svg)](https://phpackages.com/packages/tjmugova-laravel-dpo)
```

###  Alternatives

[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[laravel-notification-channels/pusher-push-notifications

Pusher native Push Notifications driver.

282733.2k1](/packages/laravel-notification-channels-pusher-push-notifications)[sassnowski/venture

A package to manage complex workflows built on top of Laravel's queue.

825254.5k1](/packages/sassnowski-venture)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2021.9M4](/packages/laravel-notification-channels-apn)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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