PHPackages                             dipnot/direct-pay-online-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. [API Development](/categories/api)
4. /
5. dipnot/direct-pay-online-php

ActiveLibrary[API Development](/categories/api)

dipnot/direct-pay-online-php
============================

Unofficial Direct Pay Online API Wrapper

v2.1(5y ago)13462MITPHPPHP &gt;=5.6.36

Since Nov 9Pushed 4y ago1 watchersCompare

[ Source](https://github.com/dipnot/direct-pay-online-php)[ Packagist](https://packagist.org/packages/dipnot/direct-pay-online-php)[ Docs](https://www.dipnot.com.tr/)[ RSS](/packages/dipnot-direct-pay-online-php/feed)WikiDiscussions main Synced today

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

Direct Pay Online API Wrapper for PHP
=====================================

[](#direct-pay-online-api-wrapper-for-php)

[![Latest Stable Version](https://camo.githubusercontent.com/c3ded30d770088ae56ff5ce26e59ab8a5c4a032b9b4f82e2762f512155dc46c2/68747470733a2f2f706f7365722e707567782e6f72672f6469706e6f742f6469726563742d7061792d6f6e6c696e652d7068702f76)](https://packagist.org/packages/dipnot/direct-pay-online-php)[![Total Downloads](https://camo.githubusercontent.com/e973cf294265911be61397512675fc1d2699592d5da2f735b4148dfe9ab83518/68747470733a2f2f706f7365722e707567782e6f72672f6469706e6f742f6469726563742d7061792d6f6e6c696e652d7068702f646f776e6c6f616473)](https://packagist.org/packages/dipnot/direct-pay-online-php)

Unofficial PHP wrapper for [Direct Pay Online API](https://directpayonline.atlassian.net/wiki/spaces/API/overview)

Inspired by [cy6erlion/direct-pay-online](https://github.com/cy6erlion/direct-pay-online)

Only covers `createToken` and `verifyToken` services.

Dependencies
------------

[](#dependencies)

- PHP 5.6.36 or higher
- ext-curl
- ext-simplexml
- ext-json

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

[](#installation)

You can install via [Composer](https://getcomposer.org/).

```
composer require dipnot/direct-pay-online-php

```

Usage
-----

[](#usage)

You can see the full example in [examples](https://github.com/dipnot/direct-pay-online-php/tree/main/examples) folder.

### Config

[](#config)

All request are needs a Config.

```
use Dipnot\DirectPayOnline\Config;

$config = new Config();
$config->setCompanyToken("9F416C11-127B-4DE2-AC7F-D5710E4C5E0A");
$config->setTestMode(true);
```

### Transaction

[](#transaction)

```
use Dipnot\DirectPayOnline\Model\Transaction;

$transaction = new Transaction(100, "USD");
```

### Service

[](#service)

```
use Dipnot\DirectPayOnline\Model\Service;

$service = new Service("Test Product", 3854, "2020/02/12 11:21");
```

### "createToken" Request

[](#createtoken-request)

Create a token to start payment process.

```
use Dipnot\DirectPayOnline\Request\CreateTokenRequest;

$createTokenRequest = new CreateTokenRequest($config);
$createTokenRequest->setTransaction($transaction);
$createTokenRequest->addService($service1);
$createTokenRequest->addService($service2);
$createToken = $createTokenRequest->execute();
print_r($createToken);
```

### "verifyToken" Request

[](#verifytoken-request)

Get the payment result by using VerifyTokenRequest.

```
use Dipnot\DirectPayOnline\Request\VerifyTokenRequest;

$verifyTokenRequest = new VerifyTokenRequest($config);
$verifyTokenRequest->setTransactionToken($_GET["TransactionToken"]);
$verifyToken = $verifyTokenRequest->execute();
print_r($verifyToken);
```

### Getting the payment URL

[](#getting-the-payment-url)

Get the payment URL with the created token to redirect the user to the payment page.

```
$paymentUrl = $createTokenRequest->getPaymentUrl($createToken["TransToken"]);
print_r($paymentUrl);
```

Test values
-----------

[](#test-values)

You can fill the personal info randomly in the payment page.

ValueCompany token9F416C11-127B-4DE2-AC7F-D5710E4C5E0ACard number5436886269848367Card expiry date (Month/Year)12/22Card CVV123License
-------

[](#license)

[![License: MIT](https://camo.githubusercontent.com/9d5d73228024488e29bb85f36ef2cd3c20dba1cd3b66b02fda3d53148f48d575/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d253233326664636666)](https://github.com/dipnot/direct-pay-online-php/blob/main/LICENSE)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

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

Every ~0 days

Total

3

Last Release

2006d ago

Major Versions

v1.0 → v2.02020-11-09

### Community

Maintainers

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

---

Top Contributors

[![ozgurg](https://avatars.githubusercontent.com/u/6717356?v=4)](https://github.com/ozgurg "ozgurg (32 commits)")

---

Tags

apicomposerdirect-pay-onlinedpopayment-systemphp-libraryapidpopayment systemdirect pay online

### Embed Badge

![Health badge](/badges/dipnot-direct-pay-online-php/health.svg)

```
[![Health](https://phpackages.com/badges/dipnot-direct-pay-online-php/health.svg)](https://phpackages.com/packages/dipnot-direct-pay-online-php)
```

###  Alternatives

[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22779.0k](/packages/m165437-laravel-blueprint-docs)

PHPackages © 2026

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